1 parent 0208d5e commit eabf139Copy full SHA for eabf139
1 file changed
src/gource.cpp
@@ -40,7 +40,8 @@ Gource::Gource(FrameExporter* exporter) {
40
if(display.viewport_dpi_ratio.x > 1.0f) {
41
gGourceSettings.font_scale = display.viewport_dpi_ratio.x;
42
} else {
43
- gGourceSettings.font_scale = (float) glm::max(1, display.width / 1920);
+ int threshold = 1600;
44
+ gGourceSettings.font_scale = (float) (1 + glm::max(0, display.height / threshold));
45
}
46
debugLog("setting font scale for resolution %d x %d to %.2f", display.width, display.height, gGourceSettings.font_scale);
47
gGourceSettings.setScaledFontSizes();
0 commit comments