changeset 120:d7264281cb4a

fix: compile error due to missing scope with static if
author Frank Benoit <benoit@tionex.de>
date Mon, 11 Feb 2008 04:33:36 +0100
parents 74cf1077ac58
children e3b3f0fc0c7b
files dwt/widgets/Canvas.d
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/widgets/Canvas.d	Mon Feb 11 04:30:12 2008 +0100
+++ b/dwt/widgets/Canvas.d	Mon Feb 11 04:33:36 2008 +0100
@@ -209,9 +209,11 @@
         static if (OS.IsWinCE) {
             OS.InvalidateRect (handle, &sourceRect, true);
         } else {
+            { // scope for flags
             int flags = OS.RDW_ERASE | OS.RDW_FRAME | OS.RDW_INVALIDATE;
             if (all) flags |= OS.RDW_ALLCHILDREN;
             OS.RedrawWindow (handle, &sourceRect, null, flags);
+            }
         }
         OS.OffsetRect (&sourceRect, deltaX, deltaY);
         static if (OS.IsWinCE) {