2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>

* video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
	Reported by: Michael Suchanek.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-02-20 11:15:51 +01:00
parent 0a39de87d9
commit 42b1d18685
2 changed files with 10 additions and 3 deletions

View file

@ -1,4 +1,9 @@
2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
* video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
Reported by: Michael Suchanek.
2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
* util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
* util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.

View file

@ -1006,11 +1006,13 @@ grub_video_fb_scroll (grub_video_color_t color, int dx, int dy)
{ \
/* 3b. Move data downwards. */ \
dst = (void *) grub_video_fb_get_video_ptr (&target, \
dst_x + width - 1, \
dst_x + width, \
dst_y + height - 1); \
src = (void *) grub_video_fb_get_video_ptr (&target, \
src_x + width - 1, \
src_x + width, \
src_y + height - 1); \
dst--; \
src--; \
for (j = 0; j < height; j++) \
{ \
for (i = 0; i < linelen; i++) \