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
This commit is contained in:
reimar 2006-11-17 17:44:51 +00:00
parent 4295799cf5
commit 1719ee50e2
1 changed files with 2 additions and 2 deletions

View File

@ -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);