mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 02:51:24 +00:00
fix scrolling on differing font sizes
This commit is contained in:
parent
28c339cb6d
commit
12428a9fcd
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue