From 1719ee50e2ebbedfc678d2cddd0fea618dde7062 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 17 Nov 2006 17:44:51 +0000 Subject: Adapt code to annoying ShowCursor semantics (increases/decreases and returns an internal variable, cursor is show when this variable is >= 0) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20988 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/w32_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/w32_common.c b/libvo/w32_common.c index 0b740661e2..eec817d68f 100644 --- a/libvo/w32_common.c +++ b/libvo/w32_common.c @@ -239,10 +239,10 @@ static int createRenderingContext(void) { 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); -- cgit v1.2.3