parent
dee078e34c
commit
4b120482e3
2 changed files with 4 additions and 4 deletions
|
|
@ -647,7 +647,7 @@ const char* FurnaceGUI::getSystemName(DivSystem which) {
|
|||
}
|
||||
|
||||
void FurnaceGUI::updateScroll(int amount) {
|
||||
float lineHeight=(PAT_FONT_SIZE+2*dpiScale);
|
||||
float lineHeight=round(PAT_FONT_SIZE+2*dpiScale);
|
||||
nextScroll=lineHeight*amount;
|
||||
haveHitBounds=false;
|
||||
}
|
||||
|
|
@ -658,13 +658,13 @@ void FurnaceGUI::updateScrollRaw(float amount) {
|
|||
}
|
||||
|
||||
void FurnaceGUI::addScroll(int amount) {
|
||||
float lineHeight=(PAT_FONT_SIZE+2*dpiScale);
|
||||
float lineHeight=round(PAT_FONT_SIZE+2*dpiScale);
|
||||
nextAddScroll=lineHeight*amount;
|
||||
haveHitBounds=false;
|
||||
}
|
||||
|
||||
void FurnaceGUI::addScrollX(int amount) {
|
||||
float lineHeight=(PAT_FONT_SIZE+2*dpiScale);
|
||||
float lineHeight=round(PAT_FONT_SIZE+2*dpiScale);
|
||||
nextAddScrollX=lineHeight*amount;
|
||||
haveHitBounds=false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ void FurnaceGUI::drawPatternNew() {
|
|||
}*/
|
||||
|
||||
ImGui::PushFont(patFont);
|
||||
float lineHeight=(ImGui::GetTextLineHeight()+2*dpiScale);
|
||||
float lineHeight=round(ImGui::GetTextLineHeight()+2*dpiScale);
|
||||
dummyRows=(ImGui::GetWindowSize().y/lineHeight)/2;
|
||||
int totalRows=e->curSubSong->patLen+dummyRows*2;
|
||||
int firstRow=-dummyRows+1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue