Skip to content

Commit

Permalink
Improve drawing performance when lyrics are being displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
kbuffington committed May 22, 2021
1 parent 05d39fc commit 858c365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/georgia-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ function setupRotationTimer() {
cdartArray[rotatedCdIndex] = rotateImg(cdart, cdart_size.w, cdart_size.h, 360/pref.spinCdArtImageCount * rotatedCdIndex)
}
const cdLeftEdge = pref.cdart_ontop ? cdart_size.x : albumart_size.x + albumart_size.w; // the first line of cdImage that will be drawn
window.RepaintRect(cdLeftEdge, cdart_size.y, cdart_size.w - (cdLeftEdge - cdart_size.x), cdart_size.h, !pref.cdart_ontop);
window.RepaintRect(cdLeftEdge, cdart_size.y, cdart_size.w - (cdLeftEdge - cdart_size.x), cdart_size.h, !pref.cdart_ontop && !pref.displayLyrics);
}, pref.spinCdArtRedrawInterval);
}
}
Expand Down Expand Up @@ -2255,7 +2255,7 @@ function on_playback_time() {
}

function refresh_seekbar() {
window.RepaintRect(0.025 * ww, wh - geo.lower_bar_h, 0.95 * ww, geo.lower_bar_h, true);
window.RepaintRect(0.025 * ww, wh - geo.lower_bar_h, 0.95 * ww, geo.lower_bar_h, pref.spinCdart && !pref.displayLyrics);
}

// TIMER Callback functions
Expand Down

0 comments on commit 858c365

Please sign in to comment.