summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2024-05-05 21:35:03 (GMT)
committerfvogel <fvogelnew1@free.fr>2024-05-05 21:35:03 (GMT)
commit4a1ea025842883245014d58ce4786564089dce3b (patch)
tree50c8e26b9c813f6f8818e017fcd44b1b5fbbec11 /generic
parent74b174eed61acafb5e8bc26bfe8d8d33fcadd7aa (diff)
downloadtk-4a1ea025842883245014d58ce4786564089dce3b.zip
tk-4a1ea025842883245014d58ce4786564089dce3b.tar.gz
tk-4a1ea025842883245014d58ce4786564089dce3b.tar.bz2
Fix [bb52855781]: ttk treeview tests not robust against display scaling.
Diffstat (limited to 'generic')
-rw-r--r--generic/ttk/ttkTreeview.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/ttk/ttkTreeview.c b/generic/ttk/ttkTreeview.c
index 5880a49..5855d24 100644
--- a/generic/ttk/ttkTreeview.c
+++ b/generic/ttk/ttkTreeview.c
@@ -2775,8 +2775,8 @@ static int TreeviewHorribleIdentify(
/* ASSERT: objc == 4 */
- if (Tcl_GetIntFromObj(interp, objv[2], &x) != TCL_OK
- || Tcl_GetIntFromObj(interp, objv[3], &y) != TCL_OK) {
+ if (Tk_GetPixelsFromObj(interp, tv->core.tkwin, objv[2], &x) != TCL_OK
+ || Tk_GetPixelsFromObj(interp, tv->core.tkwin, objv[3], &y) != TCL_OK) {
return TCL_ERROR;
}
@@ -2865,8 +2865,8 @@ static int TreeviewIdentifyCommand(
if (Tcl_GetIndexFromObjStruct(interp, objv[2], submethodStrings,
sizeof(char *), "command", TCL_EXACT, &submethod) != TCL_OK
- || Tcl_GetIntFromObj(interp, objv[3], &x) != TCL_OK
- || Tcl_GetIntFromObj(interp, objv[4], &y) != TCL_OK
+ || Tk_GetPixelsFromObj(interp, tv->core.tkwin, objv[3], &x) != TCL_OK
+ || Tk_GetPixelsFromObj(interp, tv->core.tkwin, objv[4], &y) != TCL_OK
) {
return TCL_ERROR;
}