winex11.drv: Optimise getting the bits of a DIB after calling SetDIBits.

Robert Shearman rob at
Thu Feb 21 10:44:59 CST 2008

Sync the application's bits in SetDIBits if the input bits are in 
exactly the same format and the size of the image is small enough not to 
cause a performance hit (in case the application doesn't get ever access 
the bits directly).

This avoids an X11 server call when GetDIBits is called or when the bits 
are accessed directly, which improves performance and also means that 
the alpha component is preserved.
  dlls/winex11.drv/dib.c |   50 
  1 files changed, 39 insertions(+), 11 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f31b192a32a459b87b0972d45b2262f5ac18f4af.diff
Type: text/x-patch
Size: 3046 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list