mirror of https://github.com/mpv-player/mpv
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:
parent
4295799cf5
commit
1719ee50e2
|
@ -239,10 +239,10 @@ static int createRenderingContext(void) {
|
||||||
if (vo_fs || vo_ontop) layer = HWND_TOPMOST;
|
if (vo_fs || vo_ontop) layer = HWND_TOPMOST;
|
||||||
if (vo_fs) {
|
if (vo_fs) {
|
||||||
changeMode();
|
changeMode();
|
||||||
ShowCursor(0);
|
while (ShowCursor(0) >= 0) /**/ ;
|
||||||
} else {
|
} else {
|
||||||
resetMode();
|
resetMode();
|
||||||
ShowCursor(1);
|
while (ShowCursor(1) < 0) /**/ ;
|
||||||
}
|
}
|
||||||
updateScreenProperties();
|
updateScreenProperties();
|
||||||
ShowWindow(vo_window, SW_HIDE);
|
ShowWindow(vo_window, SW_HIDE);
|
||||||
|
|
Loading…
Reference in New Issue