summaryrefslogtreecommitdiff
path: root/test/fonts.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-11-02 13:57:56 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-11-02 13:57:56 +0000
commit8979617990dca283bbf00b7fd4e5fa4a9f6e2c7f (patch)
tree3d4480787506a6bd8f190a87c483187a2cda38ef /test/fonts.cxx
parentcddb39a066ba484ecf44dceb0bdb2b930a0764c9 (diff)
STR #1052: updated color handling in test programs. If you are planning on creating labels based on foreground or background color, you should load the colors *before* creating the user interface. This is done by calling:
Fl::args(arc, argv); Fl::set_system_colors(); git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4626 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/fonts.cxx')
-rw-r--r--test/fonts.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fonts.cxx b/test/fonts.cxx
index 91e9e6eaa..0e6a6e1e7 100644
--- a/test/fonts.cxx
+++ b/test/fonts.cxx
@@ -138,6 +138,7 @@ void create_the_forms() {
int main(int argc, char **argv) {
Fl::scheme(NULL);
+ Fl::args(argc, argv);
Fl::get_system_colors();
create_the_forms();
#ifdef __APPLE__