|
@@ -26,11 +26,11 @@ namespace Art = DistrhoArtworkNekobi; |
|
|
|
|
|
|
|
|
DistrhoUINekobi::DistrhoUINekobi() |
|
|
DistrhoUINekobi::DistrhoUINekobi() |
|
|
: UI(Art::backgroundWidth, Art::backgroundHeight), |
|
|
: UI(Art::backgroundWidth, Art::backgroundHeight), |
|
|
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, GL_BGR), |
|
|
|
|
|
|
|
|
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatBGR), |
|
|
fAboutWindow(this) |
|
|
fAboutWindow(this) |
|
|
{ |
|
|
{ |
|
|
// about |
|
|
// about |
|
|
Image aboutImage(Art::aboutData, Art::aboutWidth, Art::aboutHeight, GL_BGR); |
|
|
|
|
|
|
|
|
Image aboutImage(Art::aboutData, Art::aboutWidth, Art::aboutHeight, kImageFormatBGR); |
|
|
fAboutWindow.setImage(aboutImage); |
|
|
fAboutWindow.setImage(aboutImage); |
|
|
|
|
|
|
|
|
// slider |
|
|
// slider |
|
@@ -171,7 +171,7 @@ void DistrhoUINekobi::imageButtonClicked(ImageButton* button, int) |
|
|
if (button != fButtonAbout) |
|
|
if (button != fButtonAbout) |
|
|
return; |
|
|
return; |
|
|
|
|
|
|
|
|
fAboutWindow.exec(); |
|
|
|
|
|
|
|
|
fAboutWindow.runAsModal(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void DistrhoUINekobi::imageKnobDragStarted(ImageKnob* knob) |
|
|
void DistrhoUINekobi::imageKnobDragStarted(ImageKnob* knob) |
|
@@ -206,8 +206,10 @@ void DistrhoUINekobi::imageSliderValueChanged(ImageSlider* slider, float value) |
|
|
|
|
|
|
|
|
void DistrhoUINekobi::onDisplay() |
|
|
void DistrhoUINekobi::onDisplay() |
|
|
{ |
|
|
{ |
|
|
fImgBackground.draw(); |
|
|
|
|
|
fNeko.draw(); |
|
|
|
|
|
|
|
|
const GraphicsContext& context(getGraphicsContext()); |
|
|
|
|
|
|
|
|
|
|
|
fImgBackground.draw(context); |
|
|
|
|
|
fNeko.draw(context); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------- |
|
|
// ----------------------------------------------------------------------- |
|
|