See screenshots included.

If the center slice is NULL then west or north slice is also NULL so the 
height_n or width_w is also NULL. We can count these values from raw (non-
scaled) bitmaps. The values will be the same as before for common cases. And 
the bug will be fixed.

-- 
With best regards,
_______________________________
Vladimir Testov, ROSA Laboratory.
www.rosalab.ru

<<attachment: after-widget-box.png>>

diff -Naur grub-2.01/grub-core/gfxmenu/widget-box.c grub-box-draw/grub-core/gfxmenu/widget-box.c
--- grub-2.01/grub-core/gfxmenu/widget-box.c	2013-02-25 16:54:27.000000000 +0400
+++ grub-box-draw/grub-core/gfxmenu/widget-box.c	2013-07-17 21:25:10.536077964 +0400
@@ -81,8 +81,8 @@
   int height_n;
   int width_w;
 
-  height_n = get_height (self->scaled_pixmaps[BOX_PIXMAP_N]);
-  width_w = get_width (self->scaled_pixmaps[BOX_PIXMAP_W]);
+  height_n = get_height (self->raw_pixmaps[BOX_PIXMAP_N]);
+  width_w = get_width (self->raw_pixmaps[BOX_PIXMAP_W]);
 
   /* Draw sides.  */
   blit (self, BOX_PIXMAP_N, x + width_w, y);

<<attachment: before-widget-box.png>>

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to