Mercurial > projects > dwt-win
diff dwt/dnd/ImageTransfer.d @ 237:e2affbeb686d
Making tango.sys.win32.Types and dwt.internal.win32.WINTYPES to match common declaration. Make ansi charactars of type ubyte.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 19 Jun 2008 03:25:36 +0200 |
parents | 36f5cb12e1a2 |
children | fd9c62a2998e |
line wrap: on
line diff
--- a/dwt/dnd/ImageTransfer.d Sun Jun 08 15:12:40 2008 +0200 +++ b/dwt/dnd/ImageTransfer.d Thu Jun 19 03:25:36 2008 +0200 @@ -182,8 +182,8 @@ } else { DIBSECTION dib; OS.GetObject(memDib, DIBSECTION.sizeof, &dib); - int biHeight = dib.biHeight; - int scanline = dib.biSizeImage / biHeight; + int biHeight = dib.dsBmih.biHeight; + int scanline = dib.dsBmih.biSizeImage / biHeight; auto pDestBits = pBits; auto pSourceBits = bits + scanline * (biHeight - 1); for (int i = 0; i < biHeight; i++) {