C89_BUILD buildfix
This commit is contained in:
parent
2ac18a621a
commit
cebc01cb1e
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue