[AD] 2 glitches in the GUI code

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Seems like the last GUI cleanup left 2 small glitches in the
MENU drawing code:

The first is in d_menu_proc, and causes MENUs to be drawn 1
pixel off the position given in the DIALOG struct, as well
as using wrong values for the maximum width and height.

The second causes all menus to be drawn one pixel too wide,
and one pixel too high.

The attached patch fixes both. Interestingly, grabber already
uses the right values, so the patch actually fixes it instead
of breaking it. I guess the same applies to all other
programs using the GUI but who were not aware of these 2
glitches.

--
Elias Pschernig

Attachment: gui.c.diff
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/