home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.117 < prev    next >
Encoding:
Internet Message Format  |  2001-12-31  |  2.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.117
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.117 (extra)
  11. Problem:    Win32: when disabling the menu, "set lines=999" doesn't use all
  12.         the available screen space.
  13. Solution:   Don't subtract the fixed caption height but the real menu height
  14.         from the available screen space.  Also: Avoid recursion in
  15.         gui_mswin_get_menu_height().
  16. Files:        src/gui_w32.c, src/gui_w48.c
  17.  
  18.  
  19. *** ../vim60.116/src/gui_w32.c    Tue Jan  1 20:29:44 2002
  20. --- src/gui_w32.c    Tue Jan  1 22:24:54 2002
  21. ***************
  22. *** 330,338 ****
  23.       }
  24.   
  25.       if (fix_window && menu_height != old_menu_height)
  26.       gui_set_shellsize(FALSE, FALSE);
  27.   
  28. -     old_menu_height = menu_height;
  29.       return menu_height;
  30.   }
  31.   #endif /*FEAT_MENU*/
  32. --- 330,340 ----
  33.       }
  34.   
  35.       if (fix_window && menu_height != old_menu_height)
  36. +     {
  37. +     old_menu_height = menu_height;
  38.       gui_set_shellsize(FALSE, FALSE);
  39. +     }
  40.   
  41.       return menu_height;
  42.   }
  43.   #endif /*FEAT_MENU*/
  44. *** ../vim60.116/src/gui_w48.c    Wed Sep 19 19:37:40 2001
  45. --- src/gui_w48.c    Tue Jan  1 22:59:35 2002
  46. ***************
  47. *** 2368,2376 ****
  48.   
  49.       *screen_w = GetSystemMetrics(SM_CXSCREEN)
  50.             - GetSystemMetrics(SM_CXFRAME) * 2;
  51.       *screen_h = GetSystemMetrics(SM_CYFULLSCREEN)
  52.             - GetSystemMetrics(SM_CYFRAME) * 2
  53. !           - GetSystemMetrics(SM_CYCAPTION);
  54.   }
  55.   
  56.       void
  57. --- 2368,2382 ----
  58.   
  59.       *screen_w = GetSystemMetrics(SM_CXSCREEN)
  60.             - GetSystemMetrics(SM_CXFRAME) * 2;
  61. +     /* FIXME: dirty trick: Because the gui_get_base_height() doesn't include
  62. +      * the menubar for MSwin, we subtract it from the screen height, so that
  63. +      * the window size can be made to fit on the screen. */
  64.       *screen_h = GetSystemMetrics(SM_CYFULLSCREEN)
  65.             - GetSystemMetrics(SM_CYFRAME) * 2
  66. ! #ifdef FEAT_MENU
  67. !           - gui_mswin_get_menu_height(FALSE)
  68. ! #endif
  69. !           ;
  70.   }
  71.   
  72.       void
  73. *** ../vim60.116/src/version.c    Tue Jan  1 21:13:14 2002
  74. --- src/version.c    Tue Jan  1 23:05:01 2002
  75. ***************
  76. *** 608,609 ****
  77. --- 608,611 ----
  78.   {   /* Add new patch number below this line */
  79. + /**/
  80. +     117,
  81.   /**/
  82.  
  83. -- 
  84.    GALAHAD hurries to the door and pushes through it.  As he leaves the room
  85.    we CUT TO the reverse to show that he is now in a room full of bathing
  86.    and romping GIRLIES, all innocent, wide-eyed and beautiful.  They smile
  87.    enchantingly at him as he tries to keep walking without being diverted by
  88.    the lovely sights assaulting his eyeballs.
  89.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  90.  
  91.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  92. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  93.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  94.