Browse Source

LR_DEFAULTSIZE

David Rose 13 years ago
parent
commit
e5bed7767e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/windisplay/winGraphicsWindow.cxx

+ 1 - 1
panda/src/windisplay/winGraphicsWindow.cxx

@@ -2593,7 +2593,7 @@ get_icon(const Filename &filename) {
   Filename os = resolved.to_os_specific();
   Filename os = resolved.to_os_specific();
 
 
   HANDLE h = LoadImage(NULL, os.c_str(),
   HANDLE h = LoadImage(NULL, os.c_str(),
-                       IMAGE_ICON, 0, 0, LR_LOADFROMFILE);
+                       IMAGE_ICON, 0, 0, LR_LOADFROMFILE | LR_DEFAULTSIZE);
   if (h == 0) {
   if (h == 0) {
     windisplay_cat.warning()
     windisplay_cat.warning()
       << "windows icon filename '" << os << "' could not be loaded!!\n";
       << "windows icon filename '" << os << "' could not be loaded!!\n";