diff options
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java | 22 | ||||
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java | 14 |
2 files changed, 18 insertions, 18 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java index bfe46855bb..766da37e0d 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java @@ -958,17 +958,17 @@ LRESULT WM_NCPAINT (int wParam, int lParam) { int bits = OS.GetWindowLong (handle, OS.GWL_EXSTYLE); if ((bits & OS.WS_EX_CLIENTEDGE) != 0) { int hDC = OS.GetWindowDC (handle); - RECT rect = new RECT (); - OS.GetWindowRect (handle, rect); - rect.right -= rect.left; - rect.bottom -= rect.top; - rect.left = rect.top = 0; - int border = OS.GetSystemMetrics (OS.SM_CXEDGE); - OS.ExcludeClipRect (hDC, border, border, rect.right - border, rect.bottom - border); - int hTheme = OS.OpenThemeData (handle, EDIT); - OS.DrawThemeBackground (hTheme, hDC, OS.EP_EDITTEXT, OS.ETS_NORMAL, rect, null); - OS.CloseThemeData (handle); - OS.ReleaseDC (handle, hDC); + RECT rect = new RECT (); + OS.GetWindowRect (handle, rect); + rect.right -= rect.left; + rect.bottom -= rect.top; + rect.left = rect.top = 0; + int border = OS.GetSystemMetrics (OS.SM_CXEDGE); + OS.ExcludeClipRect (hDC, border, border, rect.right - border, rect.bottom - border); + int hTheme = OS.OpenThemeData (handle, EDIT); + OS.DrawThemeBackground (hTheme, hDC, OS.EP_EDITTEXT, OS.ETS_NORMAL, rect, null); + OS.CloseThemeData (handle); + OS.ReleaseDC (handle, hDC); } } } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java index 3855806b47..3fab06050a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java @@ -317,7 +317,7 @@ Rectangle [] getRectangles (int linkIndex) { while (point.y > lineOffsets [lineEnd]) lineEnd++; int index = 0; if (lineStart == lineEnd) { - rects [index++] = layout.getBounds (point.x, point.y); + rects [index++] = layout.getBounds (point.x, point.y); } else { rects [index++] = layout.getBounds (point.x, lineOffsets [lineStart]-1); rects [index++] = layout.getBounds (lineOffsets [lineEnd-1], point.y); @@ -847,12 +847,12 @@ LRESULT WM_PRINTCLIENT (int wParam, int lParam) { LRESULT result = super.WM_PRINTCLIENT (wParam, lParam); if (OS.COMCTL32_MAJOR < 6) { RECT rect = new RECT (); - OS.GetClientRect (handle, rect); - GCData data = new GCData (); - data.device = display; - GC gc = GC.win32_new (wParam, data); - drawWidget (gc, rect); - gc.dispose (); + OS.GetClientRect (handle, rect); + GCData data = new GCData (); + data.device = display; + GC gc = GC.win32_new (wParam, data); + drawWidget (gc, rect); + gc.dispose (); } return result; } |