[Mono-dev] Patch for Managed Windows Forms on OSX
matteo tesser
matteo.tesser at gmail.com
Wed Aug 19 05:05:40 EDT 2009
Hi,
By trying to compare the osx windows.forms driver and the x11 one I
found that one behavioral difference is present in the AddExpose
method. While under X11 AddExpose does not create explicitly WM_PAINT
or WM_NCPAINT events but only signals the areas that are to be cleared
or drawn, the osx driver is obliged specify a specific event. By
doing so it generates a different Paint events order.
In the attachment I commit a patch that basically force the execution
of the drawing stack when a WM_PAINT and WM_NCPAINT event are both
present for the same window, allowing subsequent invalidated areas to
be paint on subsequent redraws in a paint event order closest to the
desiderated one.
By doing that at least in my test much more content is displayed
correctly and for example it fixes the following bug.
https://bugzilla.novell.com/show_bug.cgi?id=462024
best regards,
Matteo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XplatUICarbonPatch.diff
Type: application/octet-stream
Size: 2182 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090819/56d527b1/attachment-0001.obj
More information about the Mono-devel-list
mailing list