Mercurial > pidgin.yaz
changeset 11316:12f6164ee2c6
[gaim-migrate @ 13518]
I followed rlaager's advice and noticed these warnings when compiling.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 19 Aug 2005 16:30:52 +0000 |
parents | a74244102c0a |
children | cdd9d1011d97 |
files | plugins/win32/winprefs/gtkappbar.c |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/win32/winprefs/gtkappbar.c Fri Aug 19 16:04:03 2005 +0000 +++ b/plugins/win32/winprefs/gtkappbar.c Fri Aug 19 16:30:52 2005 +0000 @@ -47,13 +47,13 @@ static gboolean get_rect_from_monitor(HMODULE hmod, HMONITOR monitor, RECT *rect) { gaim_GetMonitorInfo *the_GetMonitorInfo; + MONITORINFO info; if (!(the_GetMonitorInfo = (gaim_GetMonitorInfo*) GetProcAddress(hmod, "GetMonitorInfoA"))) { return FALSE; } - MONITORINFO info; info.cbSize = sizeof(info); if (!the_GetMonitorInfo(monitor, &info)) { return FALSE; @@ -71,18 +71,19 @@ static gboolean get_rect_at_point_multimonitor(POINT pt, RECT *rect) { HMODULE hmod; + gaim_MonitorFromPoint *the_MonitorFromPoint; + HMONITOR monitor; if (!(hmod = GetModuleHandle("user32"))) { return FALSE; } - gaim_MonitorFromPoint *the_MonitorFromPoint; if (!(the_MonitorFromPoint = (gaim_MonitorFromPoint*) GetProcAddress(hmod, "MonitorFromPoint"))) { return FALSE; } - HMONITOR monitor = + monitor = the_MonitorFromPoint(pt, MONITOR_DEFAULTTOPRIMARY); return get_rect_from_monitor(hmod, monitor, rect); @@ -95,18 +96,19 @@ static gboolean get_rect_of_window_multimonitor(HWND window, RECT *rect) { HMODULE hmod; + gaim_MonitorFromWindow *the_MonitorFromWindow; + HMONITOR monitor; if (!(hmod = GetModuleHandle("user32"))) { return FALSE; } - gaim_MonitorFromWindow *the_MonitorFromWindow; if (!(the_MonitorFromWindow = (gaim_MonitorFromWindow*) GetProcAddress(hmod, "MonitorFromWindow"))) { return FALSE; } - HMONITOR monitor = + monitor = the_MonitorFromWindow(window, MONITOR_DEFAULTTOPRIMARY); return get_rect_from_monitor(hmod, monitor, rect);