more debug output

This commit is contained in:
David Rose 2004-09-24 17:56:36 +00:00
parent fa5f9a7e15
commit 5fa326cbe5
3 changed files with 16 additions and 0 deletions

View File

@ -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);

View File

@ -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"

View File

@ -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;