Mercurial > mplayer.hg
diff Gui/win32/gui.c @ 20132:a8aa764559fa
added a simple timer to hide the mouse when in fullscreen mode.
author | vayne |
---|---|
date | Mon, 09 Oct 2006 18:22:57 +0000 |
parents | b69d78e8aee8 |
children | 26867dede11c |
line wrap: on
line diff
--- a/Gui/win32/gui.c Mon Oct 09 18:21:50 2006 +0000 +++ b/Gui/win32/gui.c Mon Oct 09 18:22:57 2006 +0000 @@ -566,6 +566,18 @@ mplayer_put_key(MOUSE_BTN6_DBL); break; } + case WM_TIMER: + { + if(fullscreen) while(ShowCursor(FALSE) >= 0){} + KillTimer(hWnd, ID_TIMER); + return 0; + } + case WM_MOUSEMOVE: + { + ShowCursor(TRUE); + SetTimer(hWnd, ID_TIMER, 3000, (TIMERPROC) NULL); + break; + } case WM_WINDOWPOSCHANGED: { int tmpheight=0; @@ -573,7 +585,6 @@ static uint32_t rect_height; RECT rd; POINT pt; - while(ShowCursor(TRUE) <= 0){} pt.x = 0; pt.y = 0; GetClientRect(hWnd, &rd);