summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
Diffstat (limited to 'Gui')
-rw-r--r--Gui/win32/dialogs.h1
-rw-r--r--Gui/win32/gui.c13
2 files changed, 13 insertions, 1 deletions
diff --git a/Gui/win32/dialogs.h b/Gui/win32/dialogs.h
index ac80f2c058..5651f5da70 100644
--- a/Gui/win32/dialogs.h
+++ b/Gui/win32/dialogs.h
@@ -119,6 +119,7 @@
#define ID_ASPECT3 85
#define ID_ASPECT4 86
#define ID_SUBWINDOW 87
+#define ID_TIMER 88
/* gtk emulation */
#define GTK_MB_FATAL 0x1
diff --git a/Gui/win32/gui.c b/Gui/win32/gui.c
index a795d0bd69..afe8549ad7 100644
--- a/Gui/win32/gui.c
+++ b/Gui/win32/gui.c
@@ -566,6 +566,18 @@ static LRESULT CALLBACK SubProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
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 LRESULT CALLBACK SubProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
static uint32_t rect_height;
RECT rd;
POINT pt;
- while(ShowCursor(TRUE) <= 0){}
pt.x = 0;
pt.y = 0;
GetClientRect(hWnd, &rd);