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:
parent
24bcbb8dfd
commit
93ad3ae7c5
1 changed files with 17 additions and 1 deletions
18
src/Draw.cpp
18
src/Draw.cpp
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue