summaryrefslogtreecommitdiff
path: root/src/gui_w16.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-01-21 22:09:43 +0000
committerBram Moolenaar <Bram@vim.org>2006-01-21 22:09:43 +0000
commitb1b715d1fb12f935a524dbaf2c2685a8bc0015a3 (patch)
tree737b17ab9c59d604a7c6eccc745f9d4eb57e667c /src/gui_w16.c
parentb71eaaeaa8193b0cbb67496de6ad16ced80b8b09 (diff)
downloadvim-git-b1b715d1fb12f935a524dbaf2c2685a8bc0015a3.tar.gz
updated for version 7.0184
Diffstat (limited to 'src/gui_w16.c')
-rw-r--r--src/gui_w16.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui_w16.c b/src/gui_w16.c
index 2452ce360..b8e8ca949 100644
--- a/src/gui_w16.c
+++ b/src/gui_w16.c
@@ -764,6 +764,22 @@ clear_rect(RECT *rcp)
}
+ void
+gui_mch_get_screen_dimensions(int *screen_w, int *screen_h)
+{
+
+ *screen_w = GetSystemMetrics(SM_CXFULLSCREEN)
+ - GetSystemMetrics(SM_CXFRAME) * 2;
+ /* FIXME: dirty trick: Because the gui_get_base_height() doesn't include
+ * the menubar for MSwin, we subtract it from the screen height, so that
+ * the window size can be made to fit on the screen. */
+ *screen_h = GetSystemMetrics(SM_CYFULLSCREEN)
+ - GetSystemMetrics(SM_CYFRAME) * 2
+#ifdef FEAT_MENU
+ - gui_mswin_get_menu_height(FALSE)
+#endif
+ ;
+}
#if defined(FEAT_MENU) || defined(PROTO)