Remove debug output from test/fullscreen demo

Output statements commented out and modified to go to stderr if used.
This commit is contained in:
Albrecht Schlosser
2021-01-29 13:56:09 +01:00
parent 871e7063a2
commit a2a026ed74
+3 -3
View File
@@ -77,10 +77,10 @@ Fl_Gl_Window(x,y,w,h,l) {
} }
void shape_window::draw() { void shape_window::draw() {
printf("drawing size %d %d\n",w(),h()); // fprintf(stderr, "drawing size %d %d\n", w(), h());
if (!valid()) { if (!valid()) {
valid(1); valid(1);
// printf("init\n"); // fprintf(stderr, "init\n");
glLoadIdentity(); glLoadIdentity();
glViewport(0,0,pixel_w(),pixel_h()); glViewport(0,0,pixel_w(),pixel_h());
} }
@@ -134,7 +134,7 @@ fullscreen_window::fullscreen_window(int W, int H, const char *t) : Fl_Single_Wi
int fullscreen_window::handle(int e) { int fullscreen_window::handle(int e) {
if (e == FL_FULLSCREEN) { if (e == FL_FULLSCREEN) {
printf("Received FL_FULLSCREEN event\n"); // fprintf(stderr, "Received FL_FULLSCREEN event\n");
b3->value(fullscreen_active()); b3->value(fullscreen_active());
} }
if (Fl_Single_Window::handle(e)) return 1; if (Fl_Single_Window::handle(e)) return 1;