Skip to content

Commit eabf139

Browse files
committed
Change threshold for doubling default font-scale to height of 1600
E.g. 2560x1600 will get a font-scale of 2.
1 parent 0208d5e commit eabf139

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/gource.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ Gource::Gource(FrameExporter* exporter) {
4040
if(display.viewport_dpi_ratio.x > 1.0f) {
4141
gGourceSettings.font_scale = display.viewport_dpi_ratio.x;
4242
} else {
43-
gGourceSettings.font_scale = (float) glm::max(1, display.width / 1920);
43+
int threshold = 1600;
44+
gGourceSettings.font_scale = (float) (1 + glm::max(0, display.height / threshold));
4445
}
4546
debugLog("setting font scale for resolution %d x %d to %.2f", display.width, display.height, gGourceSettings.font_scale);
4647
gGourceSettings.setScaledFontSizes();

0 commit comments

Comments
 (0)