mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-25 00:36:16 +00:00
overlay: Fix compilation warning when not having xrandr
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
6b964c93f7
commit
af79fce66d
@ -76,10 +76,11 @@ static enum position get_position(struct config *config)
|
|||||||
static void screen_size(Display *dpy, struct config *config,
|
static void screen_size(Display *dpy, struct config *config,
|
||||||
int *scr_x, int *scr_y, int *scr_width, int *scr_height)
|
int *scr_x, int *scr_y, int *scr_width, int *scr_height)
|
||||||
{
|
{
|
||||||
const char *crtc;
|
|
||||||
Screen *scr;
|
Screen *scr;
|
||||||
|
|
||||||
#ifdef HAVE_XRANDR
|
#ifdef HAVE_XRANDR
|
||||||
|
const char *crtc;
|
||||||
|
|
||||||
crtc = config_get_value(config, "x11", "crtc");
|
crtc = config_get_value(config, "x11", "crtc");
|
||||||
if (crtc) {
|
if (crtc) {
|
||||||
XRRScreenResources *res;
|
XRRScreenResources *res;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user