overlay: Fix compilation warning when not having xrandr

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau 2014-10-06 18:23:33 +01:00
parent 6b964c93f7
commit af79fce66d

View File

@ -76,10 +76,11 @@ static enum position get_position(struct config *config)
static void screen_size(Display *dpy, struct config *config,
int *scr_x, int *scr_y, int *scr_width, int *scr_height)
{
const char *crtc;
Screen *scr;
#ifdef HAVE_XRANDR
const char *crtc;
crtc = config_get_value(config, "x11", "crtc");
if (crtc) {
XRRScreenResources *res;