Use the same value for Fl::visual() everywhere.

This commit is contained in:
Jonathan Moore Liles 2012-03-06 00:59:19 -08:00
parent 0abfd44031
commit 0f86ee6882
4 changed files with 21 additions and 11 deletions

View File

@ -129,9 +129,13 @@ check_sigterm ( void * )
int
main ( int argc, char **argv )
{
printf( "%s %s %s -- %s\n", APP_TITLE, VERSION, "", COPYRIGHT );
if ( ! Fl::visual( FL_DOUBLE | FL_RGB ) )
{
WARNING( "Xdbe not supported, FLTK will fake double buffering." );
}
#ifdef HAVE_XPM
fl_open_display();
Pixmap p, mask;

View File

@ -224,6 +224,13 @@ int
main ( int argc, char **argv )
{
printf( "%s %s %s -- %s\n", APP_TITLE, VERSION, "", COPYRIGHT );
if ( ! Fl::visual( FL_DOUBLE | FL_RGB ) )
{
WARNING( "Xdbe not supported, FLTK will fake double buffering." );
}
#ifdef HAVE_XPM
fl_open_display();
Pixmap p, mask;
@ -245,8 +252,6 @@ main ( int argc, char **argv )
asprintf( &config.user_config_dir, "%s/%s", getenv( "HOME" ), USER_CONFIG_DIR );
mkdir( config.user_config_dir, 0777 );
printf( "%s %s %s -- %s\n", APP_TITLE, VERSION, "", COPYRIGHT );
playlist = new sequence;
pattern_c = new Canvas;
@ -267,8 +272,6 @@ main ( int argc, char **argv )
init_colors();
Fl::visual( FL_RGB );
init_crystal_boxtypes();
init_gleam_boxtypes();
color_scheme( "dark" );

View File

@ -165,7 +165,7 @@ Fl::lock();
}
Function {TLE()} {open
} {
code {Fl::visual( FL_DOUBLE | FL_RGB8 );
code {
make_window();

View File

@ -145,6 +145,14 @@ int
main ( int argc, char **argv )
{
printf( "%s %s -- %s\n", APP_TITLE, VERSION, COPYRIGHT );
if ( ! Fl::visual( FL_DOUBLE | FL_RGB ) )
{
WARNING( "Xdbe not supported, FLTK will fake double buffering." );
}
#ifdef HAVE_XPM
fl_open_display();
Pixmap p, mask;
@ -153,8 +161,6 @@ main ( int argc, char **argv )
(char**)icon_16x16, &p, &mask, NULL);
#endif
Fl::visual(FL_RGB8);
Thread::init();
Thread thread( "UI" );
@ -186,9 +192,6 @@ main ( int argc, char **argv )
if ( ! ensure_dirs() )
FATAL( "Cannot create required directories" );
printf( "%s %s -- %s\n", APP_TITLE, VERSION, COPYRIGHT );
instance_name = strdup( APP_NAME );
bool instance_override = false;