mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-05 15:11:19 +00:00
GUI: fix sample preview needle visible when switch
ing samples
This commit is contained in:
parent
803c8b0582
commit
ec4063641a
3 changed files with 6 additions and 1 deletions
|
@ -2016,6 +2016,10 @@ bool DivEngine::isPreviewingSample() {
|
|||
return (sPreview.sample>=0 && sPreview.sample<(int)song.sample.size());
|
||||
}
|
||||
|
||||
int DivEngine::getSamplePreviewSample() {
|
||||
return sPreview.sample;
|
||||
}
|
||||
|
||||
int DivEngine::getSamplePreviewPos() {
|
||||
return sPreview.pos;
|
||||
}
|
||||
|
|
|
@ -714,6 +714,7 @@ class DivEngine {
|
|||
|
||||
// sample preview query
|
||||
bool isPreviewingSample();
|
||||
int getSamplePreviewSample();
|
||||
int getSamplePreviewPos();
|
||||
double getSamplePreviewRate();
|
||||
|
||||
|
|
|
@ -1676,7 +1676,7 @@ void FurnaceGUI::drawSampleEdit() {
|
|||
}
|
||||
|
||||
dl->PushClipRect(rectMin,rectMax);
|
||||
if (e->isPreviewingSample()) {
|
||||
if (e->isPreviewingSample() && e->getSamplePreviewSample()==curSample) {
|
||||
if (!statusBar2.empty()) {
|
||||
statusBar2+=" | ";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue