Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConrad Groth2018-02-03 06:03:56 -0500
committerNiraj Modi2018-03-05 04:34:42 -0500
commit37235cadc610ee19c2d6588cb15047d0aa3d89b5 (patch)
tree39ca952099e31c7fc6e7f61b5688c183879106c4 /bundles/org.eclipse.swt/Eclipse SWT/win32
parent060a5fc6f1e5b447585d4a78c24708020e0bb092 (diff)
downloadeclipse.platform.swt-37235cadc610ee19c2d6588cb15047d0aa3d89b5.tar.gz
eclipse.platform.swt-37235cadc610ee19c2d6588cb15047d0aa3d89b5.tar.xz
eclipse.platform.swt-37235cadc610ee19c2d6588cb15047d0aa3d89b5.zip
Bug 527937 - [HiDPI][Win32] Checkbox/Radiobutton: focus-rect cut off
Change-Id: I6a7ce52c9064c899e5329316145f94c38a6c5970 Signed-off-by: Conrad Groth <info@conrad-groth.de>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32')
-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 57a8055abd..9b9db7148a 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
@@ -1614,7 +1614,7 @@ LRESULT wmNotifyChild (NMHDR hdr, long /*int*/ wParam, long /*int*/ lParam) {
RECT focusRect = new RECT ();
if (isRadioOrCheck()) {
if (text.length() > 0) {
- OS.SetRect(focusRect, textRect.left-1, textRect.top, Math.min(nmcd.right, textRect.right+1), textRect.bottom+1);
+ OS.SetRect(focusRect, textRect.left-1, textRect.top, Math.min(nmcd.right, textRect.right+1), Math.min(nmcd.bottom, textRect.bottom+1));
} else {
/*
* With custom foreground, draw focus rectangle for CheckBox

Back to the top