Use the same value for Fl::visual() everywhere.
This commit is contained in:
parent
0abfd44031
commit
0f86ee6882
|
@ -129,9 +129,13 @@ check_sigterm ( void * )
|
||||||
int
|
int
|
||||||
main ( int argc, char **argv )
|
main ( int argc, char **argv )
|
||||||
{
|
{
|
||||||
|
|
||||||
printf( "%s %s %s -- %s\n", APP_TITLE, VERSION, "", COPYRIGHT );
|
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
|
#ifdef HAVE_XPM
|
||||||
fl_open_display();
|
fl_open_display();
|
||||||
Pixmap p, mask;
|
Pixmap p, mask;
|
||||||
|
|
|
@ -224,6 +224,13 @@ int
|
||||||
main ( int argc, char **argv )
|
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
|
#ifdef HAVE_XPM
|
||||||
fl_open_display();
|
fl_open_display();
|
||||||
Pixmap p, mask;
|
Pixmap p, mask;
|
||||||
|
@ -245,8 +252,6 @@ main ( int argc, char **argv )
|
||||||
asprintf( &config.user_config_dir, "%s/%s", getenv( "HOME" ), USER_CONFIG_DIR );
|
asprintf( &config.user_config_dir, "%s/%s", getenv( "HOME" ), USER_CONFIG_DIR );
|
||||||
mkdir( config.user_config_dir, 0777 );
|
mkdir( config.user_config_dir, 0777 );
|
||||||
|
|
||||||
printf( "%s %s %s -- %s\n", APP_TITLE, VERSION, "", COPYRIGHT );
|
|
||||||
|
|
||||||
playlist = new sequence;
|
playlist = new sequence;
|
||||||
|
|
||||||
pattern_c = new Canvas;
|
pattern_c = new Canvas;
|
||||||
|
@ -267,8 +272,6 @@ main ( int argc, char **argv )
|
||||||
|
|
||||||
init_colors();
|
init_colors();
|
||||||
|
|
||||||
Fl::visual( FL_RGB );
|
|
||||||
|
|
||||||
init_crystal_boxtypes();
|
init_crystal_boxtypes();
|
||||||
init_gleam_boxtypes();
|
init_gleam_boxtypes();
|
||||||
color_scheme( "dark" );
|
color_scheme( "dark" );
|
||||||
|
|
|
@ -165,7 +165,7 @@ Fl::lock();
|
||||||
}
|
}
|
||||||
Function {TLE()} {open
|
Function {TLE()} {open
|
||||||
} {
|
} {
|
||||||
code {Fl::visual( FL_DOUBLE | FL_RGB8 );
|
code {
|
||||||
|
|
||||||
make_window();
|
make_window();
|
||||||
|
|
||||||
|
|
|
@ -145,6 +145,14 @@ int
|
||||||
main ( int argc, char **argv )
|
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
|
#ifdef HAVE_XPM
|
||||||
fl_open_display();
|
fl_open_display();
|
||||||
Pixmap p, mask;
|
Pixmap p, mask;
|
||||||
|
@ -153,8 +161,6 @@ main ( int argc, char **argv )
|
||||||
(char**)icon_16x16, &p, &mask, NULL);
|
(char**)icon_16x16, &p, &mask, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Fl::visual(FL_RGB8);
|
|
||||||
|
|
||||||
Thread::init();
|
Thread::init();
|
||||||
|
|
||||||
Thread thread( "UI" );
|
Thread thread( "UI" );
|
||||||
|
@ -186,9 +192,6 @@ main ( int argc, char **argv )
|
||||||
if ( ! ensure_dirs() )
|
if ( ! ensure_dirs() )
|
||||||
FATAL( "Cannot create required directories" );
|
FATAL( "Cannot create required directories" );
|
||||||
|
|
||||||
printf( "%s %s -- %s\n", APP_TITLE, VERSION, COPYRIGHT );
|
|
||||||
|
|
||||||
|
|
||||||
instance_name = strdup( APP_NAME );
|
instance_name = strdup( APP_NAME );
|
||||||
bool instance_override = false;
|
bool instance_override = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue