Toolbar: Drawing Code Rewrite

Robert Shearman R.J.Shearman at warwick.ac.uk
Wed Mar 10 09:45:29 CST 2004


Hi,

This patch makes DrawButton a lot simpler. It splits out the drawing
functions into DrawImage which draws the button image, DrawFrame which
draws the frame around the button and DrawSepDDArrow which draws the
entire separate drop-down arrow. Not only does this make the drawing
functions easier to manage, it should also make it easier to add theming
code in the future (they are now split up into the same parts as in the
themes). We also now properly support the state CDIS_MARKED/BTNS_MARKED.
Next on the agenda is to rewrite the button size calculation code,
including integrating Dmitry's code.

Changelog:
Rewrite drawing code

-------------- next part --------------
A non-text attachment was scrubbed...
Name: toolbar_drawing.diff
Type: text/x-patch
Size: 24214 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040310/58cea294/toolbar_drawing.bin


More information about the wine-patches mailing list