]> icculus.org git repositories - dana/obconf.git/commit
Fix menu preview rendering
authorDana Jansens <danakj@orodu.net>
Mon, 12 Aug 2013 00:41:54 +0000 (20:41 -0400)
committerDana Jansens <danakj@orodu.net>
Mon, 12 Aug 2013 00:41:54 +0000 (20:41 -0400)
commitaac0f760648fbdf808cb1cf4eee4d9647576f65d
treeba9dcd9578ec9373d2c125d22fc14fc7411337ab
parent222c1680f33482b74589adc1489aae4cc5c31056
Fix menu preview rendering

The menu preview was off in a few ways. The parent relative position
for the menu items was incorrect, causing them to grab the wrong part
of their parent's texture.

The menu title's parent was unset, which means it crashed when
parentrealtive was used.

The borders were drawn in the wrong places since the menu items were not
drawn in the right places, and the menu background was being drawn into
the preview window when it should only appear as a result of the menu items
reusing the texture in their own. Lastly, the menu background's height
needed to be fixed to include 1 border (between the title and the items).

This fixes the crash reported in Bug 4659.
src/preview.c