mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Fix crash in x11_display_server_get_screen_orientation
This commit is contained in:
parent
cde22645e5
commit
cfe68a4c2d
@ -482,6 +482,8 @@ static enum rotation x11_display_server_get_screen_orientation(void)
|
|||||||
int i, j;
|
int i, j;
|
||||||
Display *dpy = x11_display_server_open_display();
|
Display *dpy = x11_display_server_open_display();
|
||||||
XRRScreenResources *screen = XRRGetScreenResources(dpy, DefaultRootWindow(dpy));
|
XRRScreenResources *screen = XRRGetScreenResources(dpy, DefaultRootWindow(dpy));
|
||||||
|
if (!screen)
|
||||||
|
return ORIENTATION_NORMAL;
|
||||||
XRRScreenConfiguration *config = XRRGetScreenInfo(dpy, DefaultRootWindow(dpy));
|
XRRScreenConfiguration *config = XRRGetScreenInfo(dpy, DefaultRootWindow(dpy));
|
||||||
enum rotation rotation = ORIENTATION_NORMAL;
|
enum rotation rotation = ORIENTATION_NORMAL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user