Mercurial > projects > dwt-win
diff dwt/widgets/Table.d @ 118:521e2e00d10f
fix Shell and compile error in Table
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 11 Feb 2008 04:29:32 +0100 |
parents | 25f88bf5a6df |
children | ab60f3309436 |
line wrap: on
line diff
--- a/dwt/widgets/Table.d Mon Feb 11 04:18:24 2008 +0100 +++ b/dwt/widgets/Table.d Mon Feb 11 04:29:32 2008 +0100 @@ -3743,6 +3743,7 @@ static if (OS.IsWinCE) { flags |= OS.ILC_COLOR; } else { + {// new scope for hDC auto hDC = OS.GetDC (handle); auto bits = OS.GetDeviceCaps (hDC, OS.BITSPIXEL); auto planes = OS.GetDeviceCaps (hDC, OS.PLANES); @@ -3756,6 +3757,7 @@ case 32: flags |= OS.ILC_COLOR32; break; default: flags |= OS.ILC_COLOR; break; } + } } if ((style & DWT.RIGHT_TO_LEFT) !is 0) flags |= OS.ILC_MIRROR; if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) flags |= OS.ILC_MASK;