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)
|
static enum rotation x11_display_server_get_screen_orientation(void)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
Display *dpy = x11_display_server_open_display();
|
XRRScreenConfiguration *config = NULL;
|
||||||
XRRScreenResources *screen = XRRGetScreenResources(dpy, DefaultRootWindow(dpy));
|
enum rotation rotation = ORIENTATION_NORMAL;
|
||||||
|
Display *dpy = x11_display_server_open_display();
|
||||||
|
XRRScreenResources *screen = XRRGetScreenResources(dpy, DefaultRootWindow(dpy));
|
||||||
if (!screen)
|
if (!screen)
|
||||||
return ORIENTATION_NORMAL;
|
return ORIENTATION_NORMAL;
|
||||||
XRRScreenConfiguration *config = XRRGetScreenInfo(dpy, DefaultRootWindow(dpy));
|
config = XRRGetScreenInfo(dpy, DefaultRootWindow(dpy));
|
||||||
enum rotation rotation = ORIENTATION_NORMAL;
|
|
||||||
|
|
||||||
for (i = 0; i < screen->noutput; i++)
|
for (i = 0; i < screen->noutput; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue