summaryrefslogtreecommitdiff
path: root/examples/xrandr.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/xrandr.c')
-rw-r--r--examples/xrandr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/xrandr.c b/examples/xrandr.c
index 68b2835..9f892a8 100644
--- a/examples/xrandr.c
+++ b/examples/xrandr.c
@@ -373,7 +373,7 @@ find_output (XRUName *name)
for (output = outputs; output; output = output->next)
{
- if (XRUNameEqual (name, output->output))
+ if (XRUNameEqual (name, &(output->output)))
break;
}
return output;
@@ -408,7 +408,7 @@ find_crtc (XRUName *name)
for (c = 0; c < num_crtcs; c++)
{
crtc = &crtcs[c];
- if (XRUNameEqual (name, crtc->crtc))
+ if (XRUNameEqual (name, &(crtc->crtc)))
break;
crtc = NULL;
}
@@ -522,7 +522,7 @@ find_mode_for_output (XRUOutput *output, XRUName *name)
}
static XRRModeInfo *
-preferred_mode (XRUOoutput *output)
+preferred_mode (XRUOutput *output)
{
XRROutputInfo *output_info = output->output_info;
int m;