Browse Source

Small bugfix for size (0,0) windows

Josh Yelon 19 years ago
parent
commit
5dc1385356
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panda/src/display/graphicsEngine.cxx

+ 2 - 1
panda/src/display/graphicsEngine.cxx

@@ -250,7 +250,8 @@ make_output(GraphicsPipe *pipe,
   if (win_prop.has_size()) {
   if (win_prop.has_size()) {
     x_size = win_prop.get_x_size();
     x_size = win_prop.get_x_size();
     y_size = win_prop.get_y_size();
     y_size = win_prop.get_y_size();
-  } else {
+  }
+  if ((x_size == 0)&&(y_size == 0)) {
     flags |= GraphicsPipe::BF_size_track_host;
     flags |= GraphicsPipe::BF_size_track_host;
   }
   }
   if (host != 0) {
   if (host != 0) {