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.
This commit is contained in:
Clownacy 2020-04-17 14:16:49 +01:00
parent 24bcbb8dfd
commit 93ad3ae7c5

View file

@ -619,7 +619,23 @@ void InitTextObject(const char *name)
char path[MAX_PATH]; char path[MAX_PATH];
sprintf(path, "%s/Font/font", gDataPath); 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) void PutText(int x, int y, const char *text, unsigned long color)