Commit de66ea9d authored by Alexandros Frantzis's avatar Alexandros Frantzis Committed by Alexandre Julliard

winewayland.drv: Ensure the logical output dimensions have sane values.

If the compositor doesn't provide the logical dimensions (or sane ones), use the physical pixel dimensions as the logical dimensions.
parent 1bc84c17
......@@ -167,6 +167,14 @@ static void wayland_output_done(struct wayland_output *output)
output->pending_flags = 0;
/* Ensure the logical dimensions have sane values. */
if ((!output->current.logical_w || !output->current.logical_h) &&
output->current.current_mode)
{
output->current.logical_w = output->current.current_mode->width;
output->current.logical_h = output->current.current_mode->height;
}
pthread_mutex_unlock(&process_wayland.output_mutex);
TRACE("name=%s logical=%d,%d+%dx%d\n",
......
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