mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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;
|
||||
Display *dpy = x11_display_server_open_display();
|
||||
XRRScreenResources *screen = XRRGetScreenResources(dpy, DefaultRootWindow(dpy));
|
||||
if (!screen)
|
||||
return ORIENTATION_NORMAL;
|
||||
XRRScreenConfiguration *config = XRRGetScreenInfo(dpy, DefaultRootWindow(dpy));
|
||||
enum rotation rotation = ORIENTATION_NORMAL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user