diff dwt/graphics/Image.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/graphics/Image.d	Sun Jun 08 15:12:40 2008 +0200
+++ b/dwt/graphics/Image.d	Thu Jun 19 03:25:36 2008 +0200
@@ -1421,7 +1421,7 @@
             int numColors = 0;
             if (depth <= 8) {
                 if (isDib) {
-                    numColors = dib.biClrUsed;
+                    numColors = dib.dsBmih.biClrUsed;
                 } else {
                     numColors = 1 << depth;
                 }
@@ -1455,7 +1455,7 @@
             /* Find the size of the image and allocate data */
             int imageSize;
             if (isDib) {
-                imageSize = dib.biSizeImage;
+                imageSize = dib.dsBmih.biSizeImage;
             } else {
                 /* Call with null lpBits to get the image size */
                 static if (OS.IsWinCE) DWT.error(DWT.ERROR_NOT_IMPLEMENTED);
@@ -1469,7 +1469,7 @@
                 if (OS.IsWinCE) {
                     if (this.handle !is handle) {
                         /* get image data from the temporary DIB */
-                        OS.MoveMemory(data.ptr, dib.bmBits, imageSize);
+                        OS.MoveMemory(data.ptr, dib.dsBm.bmBits, imageSize);
                     }
                 } else {
                     OS.MoveMemory(data.ptr, bm.bmBits, imageSize);