mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 18:35:22 +00:00
Fix font rendering in GLES.
This commit is contained in:
parent
5365087311
commit
282346572d
@ -182,8 +182,19 @@ void gfx_ctx_get_video_size(unsigned *width, unsigned *height)
|
|||||||
{
|
{
|
||||||
if (!g_dpy || g_win == None)
|
if (!g_dpy || g_win == None)
|
||||||
{
|
{
|
||||||
*width = 0;
|
Display *dpy = XOpenDisplay(NULL);
|
||||||
*height = 0;
|
if (dpy)
|
||||||
|
{
|
||||||
|
int screen = DefaultScreen(dpy);
|
||||||
|
*width = DisplayWidth(dpy, screen);
|
||||||
|
*height = DisplayHeight(dpy, screen);
|
||||||
|
XCloseDisplay(dpy);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*width = 0;
|
||||||
|
*height = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user