changeset 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 e243a3de18c2
children c0bcec5150a3
files libvo/w32_common.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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);