[MPlayer-cvslog] r25815 - trunk/libvo/w32_common.c

reimar subversion at mplayerhq.hu
Sun Jan 20 10:50:51 CET 2008


Author: reimar
Date: Sun Jan 20 10:50:50 2008
New Revision: 25815

Log:
Avoid some pointer conversion warnings (the code is messy but not wrong)

Modified:
   trunk/libvo/w32_common.c

Modified: trunk/libvo/w32_common.c
==============================================================================
--- trunk/libvo/w32_common.c	(original)
+++ trunk/libvo/w32_common.c	Sun Jan 20 10:50:50 2008
@@ -360,7 +360,7 @@ int vo_w32_init(void) {
   }
 
     if (WinID >= 0)
-      vo_window = WinID;
+      vo_window = (HWND)WinID;
     else {
     vo_window = CreateWindowEx(0, classname, classname,
                   vo_border ? (WS_OVERLAPPEDWINDOW | WS_SIZEBOX) : WS_POPUP,
@@ -376,7 +376,7 @@ int vo_w32_init(void) {
     myEnumDisplayMonitors = NULL;
     user32 = GetModuleHandle("user32.dll");
     if (user32) {
-        myMonitorFromWindow = GetProcAddress(user32, "MonitorFromWindow");
+        myMonitorFromWindow = (void *)GetProcAddress(user32, "MonitorFromWindow");
         myGetMonitorInfo = GetProcAddress(user32, "GetMonitorInfoA");
         myEnumDisplayMonitors = GetProcAddress(user32, "EnumDisplayMonitors");
     }



More information about the MPlayer-cvslog mailing list