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.
This commit is contained in:
Alexandros Frantzis 2023-10-14 17:53:39 +03:00 committed by Alexandre Julliard
parent 1bc84c177d
commit de66ea9df6

View file

@ -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",