# HG changeset patch # User reimar # Date 1200822650 0 # Node ID 143989c7a3bf94679863d8d7b0e30e7742abe054 # Parent 2734c7331d4e301e9e652d7006ceb446f8233525 Avoid some pointer conversion warnings (the code is messy but not wrong) diff -r 2734c7331d4e -r 143989c7a3bf libvo/w32_common.c --- a/libvo/w32_common.c Sun Jan 20 09:41:50 2008 +0000 +++ b/libvo/w32_common.c Sun Jan 20 09:50:50 2008 +0000 @@ -360,7 +360,7 @@ } 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 @@ 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"); }