aboutsummaryrefslogtreecommitdiff
path: root/test/dw_example.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-07-26 21:53:02 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-07-26 21:53:02 +0200
commitd2bccfee406c9b99dfd85269f14d93a3ef73da0b (patch)
tree1d9784434792c0f079d7c6e063fab9f5ce47a1b8 /test/dw_example.cc
parent604b03e2b43db99bfbadcf891f459b48dc39ff2a (diff)
parent6b787a09569a823e8ebaae8025c33e4ead9e306e (diff)
merge port to fltk-1.3 (dillo_port1.3)
Diffstat (limited to 'test/dw_example.cc')
-rw-r--r--test/dw_example.cc10
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;