summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-05-28 20:45:58 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-05-28 20:45:58 (GMT)
commit18fd1bf89685a067ea6ad92d6b1d7f260394ddce (patch)
tree498bf384cc8ec9ff20ef9de45ba7f9c2e21edb0f
parent9d65143eb6ec4d77828501177d7275b0c84b5958 (diff)
parentbd0d1fd4d2137bebd775874b705c061a7e13aa7f (diff)
downloadtk-18fd1bf89685a067ea6ad92d6b1d7f260394ddce.zip
tk-18fd1bf89685a067ea6ad92d6b1d7f260394ddce.tar.gz
tk-18fd1bf89685a067ea6ad92d6b1d7f260394ddce.tar.bz2
Fix [3c6660b6f0], [601cead1d0] and [4b50b76028]: Wrong ttk::checkbutton and ttk::radiobutton scaling on Windows 10. Fix by Csaba Nemethi, and Brad Lanam.
-rw-r--r--win/ttkWinXPTheme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/ttkWinXPTheme.c b/win/ttkWinXPTheme.c
index fec0450..26807f7 100644
--- a/win/ttkWinXPTheme.c
+++ b/win/ttkWinXPTheme.c
@@ -506,7 +506,7 @@ static void GenericElementSize(
if (!(elementData->info->flags & IGNORE_THEMESIZE)) {
result = elementData->procs->GetThemePartSize(
elementData->hTheme,
- elementData->hDC,
+ NULL,
elementData->info->partId,
Ttk_StateTableLookup(elementData->info->statemap, 0),
NULL /*RECT *prc*/,