David Rose пре 21 година
родитељ
комит
5fa326cbe5

+ 5 - 0
panda/src/display/displayRegion.I

@@ -36,6 +36,11 @@ is_active() const {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE void DisplayRegion::
 INLINE void DisplayRegion::
 do_compute_pixels(int x_size, int y_size) {
 do_compute_pixels(int x_size, int y_size) {
+  if (display_cat.is_debug()) {
+    display_cat.debug()
+      << "DisplayRegion::do_compute_pixels(" << x_size << ", " << y_size << ")\n";
+  }
+
   _pl = int((_l * x_size) + 0.5);
   _pl = int((_l * x_size) + 0.5);
   _pr = int((_r * x_size) + 0.5);
   _pr = int((_r * x_size) + 0.5);
   _pb = int((_b * y_size) + 0.5);
   _pb = int((_b * y_size) + 0.5);

+ 1 - 0
panda/src/display/displayRegion.h

@@ -26,6 +26,7 @@
 #include "cullResult.h"
 #include "cullResult.h"
 #include "pointerTo.h"
 #include "pointerTo.h"
 #include "pmutex.h"
 #include "pmutex.h"
+#include "config_display.h"
 
 
 #include "plist.h"
 #include "plist.h"
 
 

+ 10 - 0
panda/src/display/graphicsWindow.cxx

@@ -626,6 +626,11 @@ do_reshape_request(int x_origin, int y_origin, int x_size, int y_size) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void GraphicsWindow::
 void GraphicsWindow::
 system_changed_properties(const WindowProperties &properties) {
 system_changed_properties(const WindowProperties &properties) {
+  if (display_cat.is_debug()) {
+    display_cat.debug()
+      << "system_changed_properties(" << properties << ")\n";
+  }
+
   MutexHolder holder(_properties_lock);
   MutexHolder holder(_properties_lock);
 
 
   if (properties.has_size()) {
   if (properties.has_size()) {
@@ -649,6 +654,11 @@ system_changed_properties(const WindowProperties &properties) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void GraphicsWindow::
 void GraphicsWindow::
 system_changed_size(int x_size, int y_size) {
 system_changed_size(int x_size, int y_size) {
+  if (display_cat.is_debug()) {
+    display_cat.debug()
+      << "system_changed_size(" << x_size << ", " << y_size << ")\n";
+  }
+
   if (x_size != _properties.get_x_size() || 
   if (x_size != _properties.get_x_size() || 
       y_size != _properties.get_y_size()) {
       y_size != _properties.get_y_size()) {
     _x_size = x_size;
     _x_size = x_size;