summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-17 17:44:51 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-17 17:44:51 +0000
commit1719ee50e2ebbedfc678d2cddd0fea618dde7062 (patch)
treec200fdd90d05082e4091caf817752df7839f6be1 /libvo
parent4295799cf5a7c74d5cfc8e9e552bf836f652f6d6 (diff)
downloadmpv-1719ee50e2ebbedfc678d2cddd0fea618dde7062.tar.bz2
mpv-1719ee50e2ebbedfc678d2cddd0fea618dde7062.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/w32_common.c4
1 files changed, 2 insertions, 2 deletions
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);