mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:58:20 +00:00
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:
parent
1bc84c177d
commit
de66ea9df6
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue