fix scrolling on differing font sizes

This commit is contained in:
tildearrow 2022-01-22 03:15:43 -05:00
parent 28c339cb6d
commit 12428a9fcd

View file

@ -166,12 +166,12 @@ bool FurnaceGUI::decodeNote(const char* what, short& note, short& octave) {
}
void FurnaceGUI::updateScroll(int amount) {
float lineHeight=(ImGui::GetTextLineHeight()+2*dpiScale);
float lineHeight=(patFont->FontSize+2*dpiScale);
nextScroll=lineHeight*amount;
}
void FurnaceGUI::addScroll(int amount) {
float lineHeight=(ImGui::GetTextLineHeight()+2*dpiScale);
float lineHeight=(patFont->FontSize+2*dpiScale);
nextAddScroll=lineHeight*amount;
}