GUI: fix pattern play flicker

This commit is contained in:
tildearrow 2023-08-29 18:13:01 -05:00
parent f9237dc69c
commit d38ff59cb8

View file

@ -378,7 +378,7 @@ void FurnaceGUI::drawPattern() {
bool inhibitMenu=false; bool inhibitMenu=false;
if (e->isPlaying() && followPattern && (!e->isStepping() || pendingStepUpdate)) { if (e->isPlaying() && followPattern && (!e->isStepping() || pendingStepUpdate)) {
cursor.y=e->getRow(); cursor.y=e->isStepping()?e->getRow():oldRow;
if (selStart.xCoarse==selEnd.xCoarse && selStart.xFine==selEnd.xFine && selStart.y==selEnd.y && !selecting) { if (selStart.xCoarse==selEnd.xCoarse && selStart.xFine==selEnd.xFine && selStart.y==selEnd.y && !selecting) {
selStart=cursor; selStart=cursor;
selEnd=cursor; selEnd=cursor;