rdb 15 years ago
parent
commit
3ca1f47ea1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panda/src/x11display/x11GraphicsWindow.cxx

+ 2 - 1
panda/src/x11display/x11GraphicsWindow.cxx

@@ -1941,7 +1941,8 @@ get_cursor(const Filename &filename) {
     }
 #endif
 
-  } else {
+  } else if (memcmp(magic, "\0\0\1\0", 4) == 0
+          || memcmp(magic, "\0\0\2\0", 4) == 0) {
     // Windows .ico or .cur file.
     x11display_cat.debug()
       << "Loading Windows cursor " << filename << "\n";