Module: wine Branch: stable Commit: d99ad3caeaaf4f675d3c883dbfe7c7e6c46a3b33 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d99ad3caeaaf4f675d3c883dbf...
Author: Mathias Kosch info@mkosch.de Date: Thu Jul 17 22:17:13 2008 +0200
winex11: Fix typo in X11DRV_SetDIBits optimization. (cherry picked from commit f296f27e96d71d713f6a13eb1b7dfb5f5c5deab4)
---
dlls/winex11.drv/dib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c index 4b287ea..7d050cc 100644 --- a/dlls/winex11.drv/dib.c +++ b/dlls/winex11.drv/dib.c @@ -3998,7 +3998,7 @@ INT X11DRV_SetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan, TRACE("syncing compatible set bits to app bits\n"); if ((tmpheight < 0) ^ (bitmap.bmHeight < 0)) { - dbits = (LPBYTE)bits + (dstwidthb * (lines-1)); + dbits += dstwidthb * (lines-1); dstwidthb = -dstwidthb; } X11DRV_DIB_DoProtectDIBSection( physBitmap, PAGE_READWRITE );