diff options
author | fvogel <fvogelnew1@free.fr> | 2016-04-21 16:33:03 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-04-21 16:33:03 (GMT) |
commit | 2488fdef685c9e8fbf79a3074ee4b0ff4b641311 (patch) | |
tree | 03919778bfee3f9ea146c905f6add344c234b949 /unix/tkUnixWm.c | |
parent | fa289415c7aaacc173ab97665af201a54eae611a (diff) | |
download | tk-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 'unix/tkUnixWm.c')
-rw-r--r-- | unix/tkUnixWm.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c index 19ac86c..6c0edc9 100644 --- a/unix/tkUnixWm.c +++ b/unix/tkUnixWm.c @@ -7413,6 +7413,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: c * c-basic-offset: 4 |