[MPlayer-cvslog] r20138 - in trunk/Gui/win32: dialogs.h gui.c

vayne subversion at mplayerhq.hu
Mon Oct 9 20:22:57 CEST 2006


Author: vayne
Date: Mon Oct  9 20:22:57 2006
New Revision: 20138

Modified:
   trunk/Gui/win32/dialogs.h
   trunk/Gui/win32/gui.c

Log:
added a simple timer to hide the mouse when in fullscreen mode.

Modified: trunk/Gui/win32/dialogs.h
==============================================================================
--- trunk/Gui/win32/dialogs.h	(original)
+++ trunk/Gui/win32/dialogs.h	Mon Oct  9 20:22:57 2006
@@ -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

Modified: trunk/Gui/win32/gui.c
==============================================================================
--- trunk/Gui/win32/gui.c	(original)
+++ trunk/Gui/win32/gui.c	Mon Oct  9 20:22:57 2006
@@ -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);



More information about the MPlayer-cvslog mailing list