=== modified file 'commands/videotest.c' --- commands/videotest.c 2010-02-03 00:24:07 +0000 +++ commands/videotest.c 2010-02-13 23:12:14 +0000 @@ -60,6 +60,45 @@ grub_video_set_active_render_target (GRUB_VIDEO_RENDER_TARGET_DISPLAY); +#define BORDER 32 +#define INC1 2 +#define INC2 4 + x += BORDER; + y += BORDER; + width -= 2* BORDER; + height -= 2* BORDER; + color = grub_video_map_rgb (255, 0, 0); + grub_video_fill_rect (color, x -1, y -1, width +2, height +2); + grub_video_set_viewport (x, y, width, height); + + color = grub_video_map_rgb (0, 0, 0); + grub_video_fill_rect (color, 0, 0, width, height); + + color = grub_video_map_rgb (0, 255, 0); + grub_video_fill_rect (color, BORDER, BORDER, width - 2* BORDER, height - 2* BORDER); + color = grub_video_map_rgb (0, 0, 0); + grub_video_fill_rect (color, BORDER + 1, BORDER + 1, width - 2* BORDER -2 , height - 2* BORDER -2); + color = grub_video_map_rgb (0, 255, 0); + grub_video_fill_rect (color, BORDER + 2, BORDER + 2, width - 2* BORDER -4 , height - 2* BORDER -4); + + color = grub_video_map_rgb (0, 0, 255); + + for(i=0; i