~ilya-yanok/ubuntu/precise/grub2/fix-for-948716

« back to all changes in this revision

Viewing changes to term/i386/pc/vesafb.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2008-01-28 00:01:11 UTC
  • mto: (17.3.1 squeeze) (1.9.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20080128000111-0764agvqzg601o1d
Tags: upstream-1.95+20080128
ImportĀ upstreamĀ versionĀ 1.95+20080128

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
struct grub_virtual_screen
56
56
{
57
 
  /* Dimensions of the virual screen.  */
 
57
  /* Dimensions of the virtual screen.  */
58
58
  grub_uint32_t width;
59
59
  grub_uint32_t height;
60
60
 
77
77
  grub_uint8_t fg_color;
78
78
  grub_uint8_t bg_color;
79
79
 
80
 
  /* Text buffer for virual screen. Contains (columns * rows) number
 
80
  /* Text buffer for virtual screen. Contains (columns * rows) number
81
81
     of entries.  */
82
82
  struct grub_colored_char *text_buffer;
83
83
};
376
376
      virtual_screen.text_buffer[i].index = 0;
377
377
    }
378
378
 
379
 
  /* Scroll frambuffer with one line to up.  */
 
379
  /* Scroll framebuffer with one line to up.  */
380
380
  grub_memmove (framebuffer,
381
381
                framebuffer
382
382
                + bytes_per_scan_line * virtual_screen.char_height,
565
565
}
566
566
 
567
567
static void
568
 
grub_virtual_screen_setcolor (grub_uint8_t normal_color __attribute__ ((unused)),
569
 
                              grub_uint8_t highlight_color __attribute__ ((unused)))
570
 
{
571
 
  /* FIXME */
572
 
}
573
 
 
574
 
static void
575
568
grub_vesafb_setcursor (int on)
576
569
{
577
570
  if (virtual_screen.cursor_state != on)
599
592
    .gotoxy = grub_vesafb_gotoxy,
600
593
    .cls = grub_vesafb_cls,
601
594
    .setcolorstate = grub_virtual_screen_setcolorstate,
602
 
    .setcolor = grub_virtual_screen_setcolor,
603
595
    .setcursor = grub_vesafb_setcursor,
604
596
    .flags = 0,
605
597
    .next = 0