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

This commit is contained in:
Henri Verbeet 2010-03-01 12:39:54 +01:00 committed by Alexandre Julliard
parent ba38340cdb
commit 508b00a329
1 changed files with 1 additions and 1 deletions

View File

@ -4249,7 +4249,7 @@ static void X11DRV_DIB_DoCopyDIBSection(X_PHYSBITMAP *physBitmap, BOOL toDIB,
descr.palentry = NULL; descr.palentry = NULL;
descr.infoWidth = dibSection.dsBmih.biWidth; descr.infoWidth = dibSection.dsBmih.biWidth;
descr.infoBpp = dibSection.dsBmih.biBitCount; 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.image = physBitmap->image;
descr.colorMap = colorMap; descr.colorMap = colorMap;
descr.nColorMap = nColorMap; descr.nColorMap = nColorMap;