summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-04-21 16:33:03 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-04-21 16:33:03 (GMT)
commit2488fdef685c9e8fbf79a3074ee4b0ff4b641311 (patch)
tree03919778bfee3f9ea146c905f6add344c234b949 /macosx
parentfa289415c7aaacc173ab97665af201a54eae611a (diff)
downloadtk-bug_c95d4691ff_mistake.zip
tk-bug_c95d4691ff_mistake.tar.gz
tk-bug_c95d4691ff_mistake.tar.bz2
Fixed [c95d4691ff] - winfo screenheight w/dual monitors returns the screen height of the primary displaybug_c95d4691ff_mistake
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXWm.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 39990e6..c9f4e9c 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -6757,6 +6757,52 @@ RemapWindows(
}
/*
+ *----------------------------------------------------------------------
+ *
+ * TkpHeightOfScreen
+ *
+ * Return the height (in pixels) of the screen.
+ *
+ * Results:
+ * The pixel height of the screen.
+ *
+ * Side effects:
+ * None.
+ *
+ *----------------------------------------------------------------------
+ */
+
+int
+TkpHeightOfScreen(
+ Tk_Window tkwin)
+{
+ return HeightOfScreen(Tk_Screen(tkwin));
+}
+
+/*
+ *----------------------------------------------------------------------
+ *
+ * TkpWidthOfScreen
+ *
+ * Return the width (in pixels) of the screen.
+ *
+ * Results:
+ * The pixel width of the screen.
+ *
+ * Side effects:
+ * None.
+ *
+ *----------------------------------------------------------------------
+ */
+
+int
+TkpWidthOfScreen(
+ Tk_Window tkwin)
+{
+ return WidthOfScreen(Tk_Screen(tkwin));
+}
+
+/*
* Local Variables:
* mode: objc
* c-basic-offset: 4