Browse Source

zyn in carla patch

tags/1.9.4
falkTX 11 years ago
parent
commit
59be04a204
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      source/modules/native-plugins/zynaddsubfx/UI/VirKeyboard.fl

+ 7
- 1
source/modules/native-plugins/zynaddsubfx/UI/VirKeyboard.fl View File

@@ -76,11 +76,17 @@ rndvelocity=0;} {}
code {int ox=x(),oy=y(),lx=w(),ly=h()-1,i; code {int ox=x(),oy=y(),lx=w(),ly=h()-1,i;


\#ifdef NTK_GUI \#ifdef NTK_GUI
\#ifdef CARLA_VERSION_STRING
Fl_Image *white_up = Fl_Shared_Image::get( gUiPixmapPath + "white_key.png" );
Fl_Image *white_down = Fl_Shared_Image::get( gUiPixmapPath + "white_key_pressed.png" );
Fl_Image *black_up = Fl_Shared_Image::get( gUiPixmapPath + "black_key.png" );
Fl_Image *black_down = Fl_Shared_Image::get( gUiPixmapPath + "black_key_pressed.png" );
\#else
Fl_Image *white_up = Fl_Shared_Image::get( PIXMAP_PATH "white_key.png" ); Fl_Image *white_up = Fl_Shared_Image::get( PIXMAP_PATH "white_key.png" );
Fl_Image *white_down = Fl_Shared_Image::get( PIXMAP_PATH "white_key_pressed.png" ); Fl_Image *white_down = Fl_Shared_Image::get( PIXMAP_PATH "white_key_pressed.png" );
Fl_Image *black_up = Fl_Shared_Image::get( PIXMAP_PATH "black_key.png" ); Fl_Image *black_up = Fl_Shared_Image::get( PIXMAP_PATH "black_key.png" );
Fl_Image *black_down = Fl_Shared_Image::get( PIXMAP_PATH "black_key_pressed.png" ); Fl_Image *black_down = Fl_Shared_Image::get( PIXMAP_PATH "black_key_pressed.png" );

\#endif


//On error fetch everything from source directory //On error fetch everything from source directory
if(!(white_up&&white_down&&black_up&&black_down)) { if(!(white_up&&white_down&&black_up&&black_down)) {


Loading…
Cancel
Save