Skip to content
Snippets Groups Projects
Commit 5c134ba7 authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

monitor: Fix WL_OUTPUT_PREFERRED_MODE comparison c'n'p error

and use a simpler expressionfor WL_OUTPUT_CURRENT_MODE
parent fb06a7d8
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment