diff dwt/widgets/Canvas.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 d7264281cb4a
line wrap: on
line diff
--- a/dwt/widgets/Canvas.d	Mon Feb 11 04:05:55 2008 +0100
+++ b/dwt/widgets/Canvas.d	Mon Feb 11 04:18:24 2008 +0100
@@ -197,7 +197,7 @@
     RECT clientRect;
     OS.GetClientRect (handle, &clientRect);
     if (OS.IntersectRect (&clientRect, &sourceRect, &clientRect)) {
-        if (OS.IsWinCE) {
+        static if (OS.IsWinCE) {
             OS.UpdateWindow (handle);
         } else {
             int flags = OS.RDW_UPDATENOW | OS.RDW_ALLCHILDREN;
@@ -206,7 +206,7 @@
     }
     int deltaX = destX - x, deltaY = destY - y;
     if (findImageControl () !is null) {
-        if (OS.IsWinCE) {
+        static if (OS.IsWinCE) {
             OS.InvalidateRect (handle, &sourceRect, true);
         } else {
             int flags = OS.RDW_ERASE | OS.RDW_FRAME | OS.RDW_INVALIDATE;
@@ -214,7 +214,7 @@
             OS.RedrawWindow (handle, &sourceRect, null, flags);
         }
         OS.OffsetRect (&sourceRect, deltaX, deltaY);
-        if (OS.IsWinCE) {
+        static if (OS.IsWinCE) {
             OS.InvalidateRect (handle, &sourceRect, true);
         } else {
             int flags = OS.RDW_ERASE | OS.RDW_FRAME | OS.RDW_INVALIDATE;