Commit 5c134ba7 authored by Guido Gunther's avatar Guido Gunther

monitor: Fix WL_OUTPUT_PREFERRED_MODE comparison c'n'p error

and use a simpler expressionfor WL_OUTPUT_CURRENT_MODE
parent fb06a7d8
......@@ -100,10 +100,10 @@ output_handle_mode (void *data,
if (height > self->height)
self->height = height;
if ((flags & WL_OUTPUT_MODE_CURRENT) == 1)
if (flags & WL_OUTPUT_MODE_CURRENT)
self->current_mode = self->modes->len - 1;
if ((flags & WL_OUTPUT_MODE_PREFERRED) == 1)
if (flags & WL_OUTPUT_MODE_PREFERRED)
self->preferred_mode = self->modes->len - 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment