mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-01 04:21:44 +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) {
|
void FurnaceGUI::updateScroll(int amount) {
|
||||||
float lineHeight=(ImGui::GetTextLineHeight()+2*dpiScale);
|
float lineHeight=(patFont->FontSize+2*dpiScale);
|
||||||
nextScroll=lineHeight*amount;
|
nextScroll=lineHeight*amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FurnaceGUI::addScroll(int amount) {
|
void FurnaceGUI::addScroll(int amount) {
|
||||||
float lineHeight=(ImGui::GetTextLineHeight()+2*dpiScale);
|
float lineHeight=(patFont->FontSize+2*dpiScale);
|
||||||
nextAddScroll=lineHeight*amount;
|
nextAddScroll=lineHeight*amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue