C89_BUILD buildfix

This commit is contained in:
twinaphex 2020-05-24 06:54:42 +02:00
parent 2ac18a621a
commit cebc01cb1e
1 changed files with 5 additions and 4 deletions

View File

@ -480,12 +480,13 @@ static void x11_display_server_set_screen_orientation(enum rotation rotation)
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));
XRRScreenConfiguration *config = NULL;
enum rotation rotation = ORIENTATION_NORMAL;
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;
config = XRRGetScreenInfo(dpy, DefaultRootWindow(dpy));
for (i = 0; i < screen->noutput; i++)
{