Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2017-04-28 16:35:16 +0000
committerNiraj Modi2017-05-02 08:49:47 +0000
commit6bb8c69300babe2e016ac34edf179de2c3937bbf (patch)
tree7f002cc4253cb8618e548d35a705d913399db211 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse
parent708e26f13bd4939d087fd0a7a166b2d0f58064ce (diff)
downloadeclipse.platform.swt-6bb8c69300babe2e016ac34edf179de2c3937bbf.tar.gz
eclipse.platform.swt-6bb8c69300babe2e016ac34edf179de2c3937bbf.tar.xz
eclipse.platform.swt-6bb8c69300babe2e016ac34edf179de2c3937bbf.zip
Bug 508680 (Part 2): [win32] Finish custom Button foreground/background
color feature Change-Id: I7dc319f1684774ff3d5b72f639b3b346ddb30bb3 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
index 892a3a6242..57a8055abd 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
@@ -1624,7 +1624,7 @@ LRESULT wmNotifyChild (NMHDR hdr, long /*int*/ wParam, long /*int*/ lParam) {
OS.SetRect (focusRect, nmcd.left+1+radioOrCheckTextPadding, nmcd.top, nmcd.right-2, nmcd.bottom-1);
}
} else {
- OS.SetRect (focusRect, nmcd.left+3, nmcd.top+3, nmcd.right-3, nmcd.bottom-3);
+ OS.SetRect (focusRect, nmcd.left+2, nmcd.top+3, nmcd.right-2, nmcd.bottom-3);
}
OS.DrawFocusRect(nmcd.hdc, focusRect);
}

Back to the top