comparison test/dw_images_scaled2.cc @ 2012:bfb8bc9ddf62

Avoid lots of flicker while resizing the window (when "buffered_drawing" is set to 0 or 1)
author Jorge Arellano Cid <jcid@dillo.org>
date Fri, 13 May 2011 14:14:43 -0400
parents 553e63661ec1
children 8cf59505bd0a
comparison
equal deleted inserted replaced
2010:c60462acb9cf 2012:bfb8bc9ddf62
71 { 71 {
72 FltkPlatform *platform = new FltkPlatform (); 72 FltkPlatform *platform = new FltkPlatform ();
73 layout = new Layout (platform); 73 layout = new Layout (platform);
74 74
75 Fl_Window *window = new Fl_Window(410, 210, "Dw Scaled Image 2"); 75 Fl_Window *window = new Fl_Window(410, 210, "Dw Scaled Image 2");
76 window->box(FL_NO_BOX);
76 window->begin(); 77 window->begin();
77 78
78 FltkViewport *viewport = new FltkViewport (0, 0, 410, 210); 79 FltkViewport *viewport = new FltkViewport (0, 0, 410, 210);
79 layout->attachView (viewport); 80 layout->attachView (viewport);
80 81