From 59be04a2045d7ad249e1d49a5cf662400d9f6d01 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 18 Apr 2014 23:16:20 +0100 Subject: [PATCH] zyn in carla patch --- .../modules/native-plugins/zynaddsubfx/UI/VirKeyboard.fl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/modules/native-plugins/zynaddsubfx/UI/VirKeyboard.fl b/source/modules/native-plugins/zynaddsubfx/UI/VirKeyboard.fl index c07a74ea1..b55d93c57 100644 --- a/source/modules/native-plugins/zynaddsubfx/UI/VirKeyboard.fl +++ b/source/modules/native-plugins/zynaddsubfx/UI/VirKeyboard.fl @@ -76,11 +76,17 @@ rndvelocity=0;} {} code {int ox=x(),oy=y(),lx=w(),ly=h()-1,i; \#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_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_down = Fl_Shared_Image::get( PIXMAP_PATH "black_key_pressed.png" ); - +\#endif //On error fetch everything from source directory if(!(white_up&&white_down&&black_up&&black_down)) {