To: vim-dev@vim.org Subject: Patch 6.1b.028 (extra) Fcc: outbox From: Bram Moolenaar MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1b.028 (extra) Problem: Win16: Can't compile after patch 6.1b.025. Solution: Add code specifically for Win16. (Vince Negri) Files: src/gui_w48.c *** ../vim61b.027/src/gui_w48.c Mon Mar 18 21:50:22 2002 --- src/gui_w48.c Tue Mar 19 20:08:15 2002 *************** *** 1954,1960 **** --- 1954,1969 ---- /* If Vim is minimized put the window in the middle of the screen. */ if (IsMinimized(hwndParent)) + { + #ifdef WIN16 + rParent.left = 0; + rParent.top = 0; + rParent.right = GetSystemMetrics(SM_CXSCREEN); + rParent.bottom = GetSystemMetrics(SM_CYFULLSCREEN); + #else SystemParametersInfo(SPI_GETWORKAREA, 0, &rParent, 0); + #endif + } else GetWindowRect(hwndParent, &rParent); wParent = rParent.right - rParent.left; *** ../vim61b.027/src/version.c Tue Mar 19 20:01:40 2002 --- src/version.c Tue Mar 19 20:06:39 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 28, /**/ -- Kisses may last for as much as, but no more than, five minutes. [real standing law in Iowa, United States of America] /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///