mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 21:25:30 +08:00
Remove debug output from test/fullscreen demo
Output statements commented out and modified to go to stderr if used.
This commit is contained in:
+3
-3
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user