Henri Verbeet : winex11.drv: Use the bitmap's "topdown" field in X11DRV_DIB_DoCopyDIBSection().

Alexandre Julliard julliard at winehq.org
Mon Mar 1 09:27:37 CST 2010


Module: wine
Branch: master
Commit: 508b00a3291f0987f5db2e704fb5de50e92529de
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=508b00a3291f0987f5db2e704fb5de50e92529de

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Mar  1 12:39:54 2010 +0100

winex11.drv: Use the bitmap's "topdown" field in X11DRV_DIB_DoCopyDIBSection().

---

 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 755c9d8..2021aab 100644
--- a/dlls/winex11.drv/dib.c
+++ b/dlls/winex11.drv/dib.c
@@ -4249,7 +4249,7 @@ static void X11DRV_DIB_DoCopyDIBSection(X_PHYSBITMAP *physBitmap, BOOL toDIB,
   descr.palentry    = NULL;
   descr.infoWidth   = dibSection.dsBmih.biWidth;
   descr.infoBpp     = dibSection.dsBmih.biBitCount;
-  descr.lines       = dibSection.dsBmih.biHeight;
+  descr.lines       = physBitmap->topdown ? -dibSection.dsBmih.biHeight : dibSection.dsBmih.biHeight;
   descr.image       = physBitmap->image;
   descr.colorMap    = colorMap;
   descr.nColorMap   = nColorMap;




More information about the wine-cvs mailing list