Mercurial > projects > dwt-win
diff dwt/graphics/Cursor.d @ 117:25f88bf5a6df
Only one file was damaged
Backed out changeset 640928daee8c
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 11 Feb 2008 04:18:24 +0100 |
parents | 640928daee8c |
children | 0a96e5a30470 |
line wrap: on
line diff
--- a/dwt/graphics/Cursor.d Mon Feb 11 04:05:55 2008 +0100 +++ b/dwt/graphics/Cursor.d Mon Feb 11 04:18:24 2008 +0100 @@ -231,7 +231,7 @@ int height = OS.GetSystemMetrics(OS.SM_CYCURSOR); if (width is 32 && height is 32) { auto hInst = OS.GetModuleHandle(null); - if (OS.IsWinCE) DWT.error(DWT.ERROR_NOT_IMPLEMENTED); + static if (OS.IsWinCE) DWT.error(DWT.ERROR_NOT_IMPLEMENTED); handle = OS.CreateCursor(hInst, 5, 0, 32, 32, HAND_SOURCE.ptr, HAND_MASK.ptr); } @@ -301,7 +301,7 @@ /* Create the cursor */ auto hInst = OS.GetModuleHandle(null); - if (OS.IsWinCE) DWT.error (DWT.ERROR_NOT_IMPLEMENTED); + static if (OS.IsWinCE) DWT.error (DWT.ERROR_NOT_IMPLEMENTED); handle = OS.CreateCursor(hInst, hotspotX, hotspotY, source.width, source.height, sourceData.ptr, maskData.ptr); if (handle is null) DWT.error(DWT.ERROR_NO_HANDLES); if (device.tracking) device.new_Object(this); @@ -396,7 +396,7 @@ * destroy them all. If this causes problems in the future, * put the flag back in. */ - if (!OS.IsWinCE) OS.DestroyCursor(handle); + static if (!OS.IsWinCE) OS.DestroyCursor(handle); } handle = null; if (device.tracking) device.dispose_Object(this);