# HG changeset patch # User Mark Doliner # Date 1156718852 0 # Node ID 114e692e08fb30369db76a3ea2204d5c00a373a2 # Parent fdf65b672b8779dc277a69b0f6e1df7048449900 [gaim-migrate @ 17065] TiCPU pointed out that our code should check if the major version of windows >= 5 instead of == 5, so that we support 16 bit icons on Vista committer: Tailor Script diff -r fdf65b672b87 -r 114e692e08fb gtk/plugins/docklet/docklet-win32.c --- a/gtk/plugins/docklet/docklet-win32.c Sun Aug 27 22:04:09 2006 +0000 +++ b/gtk/plugins/docklet/docklet-win32.c Sun Aug 27 22:47:32 2006 +0000 @@ -212,7 +212,7 @@ * 2K and ME will use the highest color depth that the desktop will support, * but will scale it back to 4-bits for display. * That is why we use custom 4-bit icons for pre XP Windowses */ - if (osinfo.dwMajorVersion == 5 && osinfo.dwMinorVersion > 0) { + if (osinfo.dwMajorVersion >= 5 && osinfo.dwMinorVersion > 0) { sysicon_disconn = (HICON)LoadImage(gtkwgaim_hinstance(), MAKEINTRESOURCE(GAIM_OFFLINE_TRAY_ICON), IMAGE_ICON, 16, 16, 0); sysicon_conn = (HICON)LoadImage(gtkwgaim_hinstance(), MAKEINTRESOURCE(GAIM_TRAY_ICON), IMAGE_ICON, 16, 16, 0); sysicon_away = (HICON)LoadImage(gtkwgaim_hinstance(), MAKEINTRESOURCE(GAIM_AWAY_TRAY_ICON), IMAGE_ICON, 16, 16, 0);