comparison libvo/w32_common.c @ 20972:ef8ac967b43f

Adapt code to annoying ShowCursor semantics (increases/decreases and returns an internal variable, cursor is show when this variable is >= 0)
author reimar
date Fri, 17 Nov 2006 17:44:51 +0000
parents 5fe83dd75490
children 2d3fdf94a50c
comparison
equal deleted inserted replaced
20971:e243a3de18c2 20972:ef8ac967b43f
237 (WS_OVERLAPPEDWINDOW | WS_SIZEBOX) : WS_POPUP; 237 (WS_OVERLAPPEDWINDOW | WS_SIZEBOX) : WS_POPUP;
238 238
239 if (vo_fs || vo_ontop) layer = HWND_TOPMOST; 239 if (vo_fs || vo_ontop) layer = HWND_TOPMOST;
240 if (vo_fs) { 240 if (vo_fs) {
241 changeMode(); 241 changeMode();
242 ShowCursor(0); 242 while (ShowCursor(0) >= 0) /**/ ;
243 } else { 243 } else {
244 resetMode(); 244 resetMode();
245 ShowCursor(1); 245 while (ShowCursor(1) < 0) /**/ ;
246 } 246 }
247 updateScreenProperties(); 247 updateScreenProperties();
248 ShowWindow(vo_window, SW_HIDE); 248 ShowWindow(vo_window, SW_HIDE);
249 SetWindowLong(vo_window, GWL_STYLE, style); 249 SetWindowLong(vo_window, GWL_STYLE, style);
250 if (vo_fs) { 250 if (vo_fs) {