From 2967d781d7073a6c19e1c00e251751b473eb7e2d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 26 Jun 2002 02:01:33 +0000 Subject: 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 --- test/preferences.fl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'test/preferences.fl') 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" ); -- cgit v1.2.3