comparison test/dw_example.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
32 { 32 {
33 dw::fltk::FltkPlatform *platform = new dw::fltk::FltkPlatform (); 33 dw::fltk::FltkPlatform *platform = new dw::fltk::FltkPlatform ();
34 dw::core::Layout *layout = new dw::core::Layout (platform); 34 dw::core::Layout *layout = new dw::core::Layout (platform);
35 35
36 Fl_Window *window = new Fl_Window(200, 300, "Dw Example"); 36 Fl_Window *window = new Fl_Window(200, 300, "Dw Example");
37 window->box(FL_NO_BOX);
37 window->begin(); 38 window->begin();
38 39
39 dw::fltk::FltkViewport *viewport = 40 dw::fltk::FltkViewport *viewport =
40 new dw::fltk::FltkViewport (0, 0, 200, 300); 41 new dw::fltk::FltkViewport (0, 0, 200, 300);
41 layout->attachView (viewport); 42 layout->attachView (viewport);