summaryrefslogtreecommitdiff
path: root/test/preferences.fl
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2002-06-26 02:01:33 +0000
committerMatthias Melcher <fltk@matthiasm.com>2002-06-26 02:01:33 +0000
commit2967d781d7073a6c19e1c00e251751b473eb7e2d (patch)
treef84337504c35770a881eba58f7dec5e2575d9ec6 /test/preferences.fl
parent690f5c5d07c21d291f04dc9297c0a0658f6f44a1 (diff)
Added gl_font calls to Cube demo for gl_font implementation on MacOS (later).
Renamed variable 'todo' in preferences.fl to 'tasks' to make global search for Todo items easier. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/preferences.fl')
-rw-r--r--test/preferences.fl20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/preferences.fl b/test/preferences.fl
index ffba4ed73..58d0b9932 100644
--- a/test/preferences.fl
+++ b/test/preferences.fl
@@ -210,11 +210,11 @@ Fl_Preferences app( Fl_Preferences::USER, "fltk.org", "test/preferences" );
if ( side == 1 ) wLeft->value( 1 );
if ( side == 2 ) wRight->value( 1 );
- int todo;
- bed.get( "todoFlags", todo, 0x05 );
- if ( todo & 0x01 ) wShower->value( 1 );
- if ( todo & 0x02 ) wShave->value( 1 );
- if ( todo & 0x04 ) wBrush->value( 1 );
+ int tasks;
+ bed.get( "taskFlags", tasks, 0x05 );
+ if ( tasks & 0x01 ) wShower->value( 1 );
+ if ( tasks & 0x02 ) wShave->value( 1 );
+ if ( tasks & 0x04 ) wBrush->value( 1 );
Fl_Preferences eat( app, "Breakfast" );
@@ -276,11 +276,11 @@ Function {writePrefs()} {open return_type void
if ( wRight->value() ) side = 2;
bed.set( "side", side );
- int todo = 0;
- if ( wShower->value() ) todo |= 0x01;
- if ( wShave->value() ) todo |= 0x02;
- if ( wBrush->value() ) todo |= 0x04;
- bed.set( "todoFlags", todo );
+ int tasks = 0;
+ if ( wShower->value() ) tasks |= 0x01;
+ if ( wShave->value() ) tasks |= 0x02;
+ if ( wBrush->value() ) tasks |= 0x04;
+ bed.set( "taskFlags", tasks );
Fl_Preferences eat( app, "Breakfast" );