mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
(Android) Add hack/workaround for DPI larger than 500 with
HAVE_STB_FONT
This commit is contained in:
parent
bad3238ac7
commit
a73f91e68a
@ -451,6 +451,18 @@ static bool android_gfx_ctx_get_metrics(void *data,
|
||||
if (density[0] == '\0')
|
||||
return false;
|
||||
dpi = atoi(density);
|
||||
|
||||
#ifdef HAVE_STB_FONT
|
||||
#ifdef ANDROID
|
||||
/* stb_truetype.h has a bug on Android
|
||||
* where it screws up all font glyphs
|
||||
* if DPI is over 500. So clamp against
|
||||
* 500 for now until we have properly
|
||||
* fixed the bug in stb_truetype.h */
|
||||
if (dpi > 500)
|
||||
dpi = 500;
|
||||
#endif
|
||||
#endif
|
||||
*value = (float)dpi;
|
||||
break;
|
||||
case DISPLAY_METRIC_NONE:
|
||||
|
Loading…
Reference in New Issue
Block a user