Browse Source

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

tags/non-daw-v1.2.0
Jonathan Moore Liles 13 years ago
parent
commit
0f86ee6882
4 changed files with 21 additions and 11 deletions
  1. +5
    -1
      mixer/src/main.C
  2. +7
    -4
      sequencer/src/main.C
  3. +1
    -1
      timeline/src/TLE.fl
  4. +8
    -5
      timeline/src/main.C

+ 5
- 1
mixer/src/main.C View File

@@ -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;


+ 7
- 4
sequencer/src/main.C View File

@@ -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" );


+ 1
- 1
timeline/src/TLE.fl View File

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


make_window(); make_window();


+ 8
- 5
timeline/src/main.C View File

@@ -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…
Cancel
Save