Browse Source

fix fullscreen resize

David Rose 19 years ago
parent
commit
38c81198f2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      panda/src/windisplay/winGraphicsWindow.cxx

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

@@ -695,7 +695,9 @@ do_fullscreen_resize(int x_size, int y_size) {
     << " bitdepth " << dwFullScreenBitDepth << ", "
     << " bitdepth " << dwFullScreenBitDepth << ", "
     << dm.dmDisplayFrequency << "Hz\n";
     << dm.dmDisplayFrequency << "Hz\n";
 
 
-  system_changed_size(x_size, y_size);
+  _properties.set_size(x_size, y_size);
+  set_size_and_recalc(x_size, y_size);
+
   return true;
   return true;
 }
 }