comparison test/dw_images_scaled.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
94 { 94 {
95 FltkPlatform *platform = new FltkPlatform (); 95 FltkPlatform *platform = new FltkPlatform ();
96 layout = new Layout (platform); 96 layout = new Layout (platform);
97 97
98 Fl_Window *window = new Fl_Window(410, 210, "Dw Scaled Image"); 98 Fl_Window *window = new Fl_Window(410, 210, "Dw Scaled Image");
99 window->box(FL_NO_BOX);
99 window->begin(); 100 window->begin();
100 101
101 FltkViewport *viewport = new FltkViewport (0, 0, 410, 210); 102 FltkViewport *viewport = new FltkViewport (0, 0, 410, 210);
102 layout->attachView (viewport); 103 layout->attachView (viewport);
103 104