diff 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
line wrap: on
line diff
--- a/libvo/w32_common.c	Fri Nov 17 17:43:40 2006 +0000
+++ b/libvo/w32_common.c	Fri Nov 17 17:44:51 2006 +0000
@@ -239,10 +239,10 @@
     if (vo_fs || vo_ontop) layer = HWND_TOPMOST;
     if (vo_fs) {
 	changeMode();
-	    ShowCursor(0);
+	while (ShowCursor(0) >= 0) /**/ ;
     } else {
 	resetMode();
-	    ShowCursor(1);
+	while (ShowCursor(1) < 0) /**/ ;
     }
     updateScreenProperties();
     ShowWindow(vo_window, SW_HIDE);