Hi, Update:
Merge grub_menu_region_create_rect into grub_menu_region_create_bitmap, it first tries to load the bitmap, if it fails, fallback to rect. To create pure rect, just set the filename to NULL. Adjust video fb function, exports grub_video_fbfill and grub_video_fbblit as they're useful for bitmap to bitmap blit. Extends bitmap scaling support, here is some sample code from menu_test.c: r3 = grub_menu_region_create_bitmap (w, h, "/r3.png", GRUB_VIDEO_BITMAP_SCALE_TYPE_TILING, get_color ("red", 1), ' '); It supports the following scaling type: GRUB_VIDEO_BITMAP_SCALE_TYPE_NORMAL Scale image to dest size GRUB_VIDEO_BITMAP_SCALE_TYPE_CENTER No scaling, draw the image at the center of dest. could leave blanks or truncate the image. GRUB_VIDEO_BITMAP_SCALE_TYPE_TILING No scaling, fill the whole dest area with tiling. GRUB_VIDEO_BITMAP_SCALE_TYPE_MINFIT Keep ratio scaling, it ensures the whole image is displayed (could leave blanks at the margin) GRUB_VIDEO_BITMAP_SCALE_TYPE_MAXFIT Keep ratio scaling, no blanks at the margin, but the image could be truncated. It can optionally OR with a constant that indicate the scaling algorithm, values are: GRUB_VIDEO_BITMAP_SCALE_METHOD_FASTEST (default) GRUB_VIDEO_BITMAP_SCALE_METHOD_BEST GRUB_VIDEO_BITMAP_SCALE_METHOD_NEAREST GRUB_VIDEO_BITMAP_SCALE_METHOD_BILINEAR --- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/ _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel