diff options
Diffstat (limited to 'test/dw_example.cc')
-rw-r--r-- | test/dw_example.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/dw_example.cc b/test/dw_example.cc index 1ce643f8..52aa2440 100644 --- a/test/dw_example.cc +++ b/test/dw_example.cc @@ -19,8 +19,8 @@ -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl_Window.H> +#include <FL/Fl.H> #include "../dw/core.hh" #include "../dw/fltkcore.hh" @@ -33,7 +33,8 @@ int main(int argc, char **argv) dw::fltk::FltkPlatform *platform = new dw::fltk::FltkPlatform (); dw::core::Layout *layout = new dw::core::Layout (platform); - fltk::Window *window = new fltk::Window(200, 300, "Dw Example"); + Fl_Window *window = new Fl_Window(200, 300, "Dw Example"); + window->box(FL_NO_BOX); window->begin(); dw::fltk::FltkViewport *viewport = @@ -50,6 +51,7 @@ int main(int argc, char **argv) fontAttrs.weight = 400; fontAttrs.style = dw::core::style::FONT_STYLE_NORMAL; fontAttrs.letterSpacing = 0; + fontAttrs.fontVariant = dw::core::style::FONT_VARIANT_NORMAL; styleAttrs.font = dw::core::style::Font::create (layout, &fontAttrs); styleAttrs.color = @@ -95,7 +97,7 @@ int main(int argc, char **argv) window->resizable(viewport); window->show(); - int errorCode = fltk::run(); + int errorCode = Fl::run(); delete layout; |