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)) {