mirror of
https://github.com/libretro/RetroArch
synced 2025-01-25 15:35:29 +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)
|
||||
{
|
||||
*width = 0;
|
||||
*height = 0;
|
||||
Display *dpy = XOpenDisplay(NULL);
|
||||
if (dpy)
|
||||
{
|
||||
int screen = DefaultScreen(dpy);
|
||||
*width = DisplayWidth(dpy, screen);
|
||||
*height = DisplayHeight(dpy, screen);
|
||||
XCloseDisplay(dpy);
|
||||
}
|
||||
else
|
||||
{
|
||||
*width = 0;
|
||||
*height = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user