ref: 93ad3ae7c5949744f54ae5b42adc9441dd47246d
parent: 24bcbb8dfd67a659ffee790de7282db70b277a36
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Apr 17 10:16:49 EDT 2020
Make font look better at 320x240 This restores some vanilla logic, where at 320x240, the font would use a slightly larger size, in order to not look terrible.
--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -619,7 +619,23 @@
char path[MAX_PATH];
sprintf(path, "%s/Font/font", gDataPath);
- font = LoadFont(path, 8 * magnification, 9 * magnification);
+ // Get font size
+ unsigned int width, height;
+
+ switch (magnification)
+ {
+ case 1:
+ height = 10;
+ width = 9;
+ break;
+
+ case 2:
+ height = 9;
+ width = 8;
+ break;
+ }
+
+ font = LoadFont(path, width * magnification, height * magnification);
}
void PutText(int x, int y, const char *text, unsigned long color)