Karsten Hopp d540a5
To: vim_dev@googlegroups.com
Karsten Hopp d540a5
Subject: Patch 7.3.275
Karsten Hopp d540a5
Fcc: outbox
Karsten Hopp d540a5
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d540a5
Mime-Version: 1.0
Karsten Hopp d540a5
Content-Type: text/plain; charset=UTF-8
Karsten Hopp d540a5
Content-Transfer-Encoding: 8bit
Karsten Hopp d540a5
------------
Karsten Hopp d540a5
Karsten Hopp d540a5
Patch 7.3.275
Karsten Hopp d540a5
Problem:    MS-Windows: When using a black background some screen updates
Karsten Hopp d540a5
	    cause the window to flicker.
Karsten Hopp d540a5
Solution:   Add WS_CLIPCHILDREN to CreateWindow().  (René Aguirre)
Karsten Hopp d540a5
Files:	    src/gui_w32.c
Karsten Hopp d540a5
Karsten Hopp d540a5
Karsten Hopp d540a5
*** ../vim-7.3.274/src/gui_w32.c	2011-07-07 17:43:37.000000000 +0200
Karsten Hopp d540a5
--- src/gui_w32.c	2011-08-10 14:40:58.000000000 +0200
Karsten Hopp d540a5
***************
Karsten Hopp d540a5
*** 1379,1385 ****
Karsten Hopp d540a5
  	    s_hwnd = CreateWindowEx(
Karsten Hopp d540a5
  		WS_EX_MDICHILD,
Karsten Hopp d540a5
  		szVimWndClass, "Vim MSWindows GUI",
Karsten Hopp d540a5
! 		WS_OVERLAPPEDWINDOW | WS_CHILD | WS_CLIPSIBLINGS | 0xC000,
Karsten Hopp d540a5
  		gui_win_x == -1 ? CW_USEDEFAULT : gui_win_x,
Karsten Hopp d540a5
  		gui_win_y == -1 ? CW_USEDEFAULT : gui_win_y,
Karsten Hopp d540a5
  		100,				/* Any value will do */
Karsten Hopp d540a5
--- 1379,1386 ----
Karsten Hopp d540a5
  	    s_hwnd = CreateWindowEx(
Karsten Hopp d540a5
  		WS_EX_MDICHILD,
Karsten Hopp d540a5
  		szVimWndClass, "Vim MSWindows GUI",
Karsten Hopp d540a5
! 		WS_OVERLAPPEDWINDOW | WS_CHILD
Karsten Hopp d540a5
! 				 | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | 0xC000,
Karsten Hopp d540a5
  		gui_win_x == -1 ? CW_USEDEFAULT : gui_win_x,
Karsten Hopp d540a5
  		gui_win_y == -1 ? CW_USEDEFAULT : gui_win_y,
Karsten Hopp d540a5
  		100,				/* Any value will do */
Karsten Hopp d540a5
***************
Karsten Hopp d540a5
*** 1410,1416 ****
Karsten Hopp d540a5
  	 * titlebar, it will be reparented below. */
Karsten Hopp d540a5
  	s_hwnd = CreateWindow(
Karsten Hopp d540a5
  		szVimWndClass, "Vim MSWindows GUI",
Karsten Hopp d540a5
! 		win_socket_id == 0 ? WS_OVERLAPPEDWINDOW : WS_POPUP,
Karsten Hopp d540a5
  		gui_win_x == -1 ? CW_USEDEFAULT : gui_win_x,
Karsten Hopp d540a5
  		gui_win_y == -1 ? CW_USEDEFAULT : gui_win_y,
Karsten Hopp d540a5
  		100,				/* Any value will do */
Karsten Hopp d540a5
--- 1411,1418 ----
Karsten Hopp d540a5
  	 * titlebar, it will be reparented below. */
Karsten Hopp d540a5
  	s_hwnd = CreateWindow(
Karsten Hopp d540a5
  		szVimWndClass, "Vim MSWindows GUI",
Karsten Hopp d540a5
! 		(win_socket_id == 0 ? WS_OVERLAPPEDWINDOW : WS_POPUP)
Karsten Hopp d540a5
! 					  | WS_CLIPSIBLINGS | WS_CLIPCHILDREN,
Karsten Hopp d540a5
  		gui_win_x == -1 ? CW_USEDEFAULT : gui_win_x,
Karsten Hopp d540a5
  		gui_win_y == -1 ? CW_USEDEFAULT : gui_win_y,
Karsten Hopp d540a5
  		100,				/* Any value will do */
Karsten Hopp d540a5
*** ../vim-7.3.274/src/version.c	2011-08-10 14:32:33.000000000 +0200
Karsten Hopp d540a5
--- src/version.c	2011-08-10 14:39:14.000000000 +0200
Karsten Hopp d540a5
***************
Karsten Hopp d540a5
*** 711,712 ****
Karsten Hopp d540a5
--- 711,714 ----
Karsten Hopp d540a5
  {   /* Add new patch number below this line */
Karsten Hopp d540a5
+ /**/
Karsten Hopp d540a5
+     275,
Karsten Hopp d540a5
  /**/
Karsten Hopp d540a5
Karsten Hopp d540a5
-- 
Karsten Hopp d540a5
ARTHUR:          What does it say?
Karsten Hopp d540a5
BROTHER MAYNARD: It reads ... "Here may be found the last words of Joseph of
Karsten Hopp d540a5
                 Aramathea." "He who is valorous and pure of heart may find
Karsten Hopp d540a5
                 the Holy Grail in the aaaaarrrrrrggghhh..."
Karsten Hopp d540a5
ARTHUR:          What?
Karsten Hopp d540a5
BROTHER MAYNARD: "The Aaaaarrrrrrggghhh..."
Karsten Hopp d540a5
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp d540a5
Karsten Hopp d540a5
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d540a5
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d540a5
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp d540a5
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///