mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 07:59:42 +00:00
This reverts commit 08496b302c
.
This commit is contained in:
parent
c43bc65c7e
commit
3ee3f2ae52
@ -130,13 +130,8 @@ void xdg_toplevel_handle_configure_common(gfx_ctx_wayland_data_t *wl,
|
|||||||
wl->buffer_height = wl->fractional_scale ?
|
wl->buffer_height = wl->fractional_scale ?
|
||||||
FRACTIONAL_SCALE_MULT(wl->height, wl->fractional_scale_num) : wl->height * wl->buffer_scale;
|
FRACTIONAL_SCALE_MULT(wl->height, wl->fractional_scale_num) : wl->height * wl->buffer_scale;
|
||||||
wl->resize = true;
|
wl->resize = true;
|
||||||
if (wl->viewport)
|
if (wl->viewport) /* Update viewport */
|
||||||
{
|
|
||||||
/* Stretch old buffer to fill new size, commit/roundtrip to apply */
|
|
||||||
wp_viewport_set_destination(wl->viewport, wl->width, wl->height);
|
wp_viewport_set_destination(wl->viewport, wl->width, wl->height);
|
||||||
wl_surface_commit(wl->surface);
|
|
||||||
wl_display_roundtrip(wl->input.dpy);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (floating)
|
if (floating)
|
||||||
@ -203,13 +198,8 @@ void libdecor_frame_handle_configure_common(struct libdecor_frame *frame,
|
|||||||
wl->buffer_height = wl->fractional_scale ?
|
wl->buffer_height = wl->fractional_scale ?
|
||||||
FRACTIONAL_SCALE_MULT(height, wl->fractional_scale_num) : height * wl->buffer_scale;
|
FRACTIONAL_SCALE_MULT(height, wl->fractional_scale_num) : height * wl->buffer_scale;
|
||||||
wl->resize = true;
|
wl->resize = true;
|
||||||
if (wl->viewport)
|
if (wl->viewport) /* Update viewport */
|
||||||
{
|
|
||||||
/* Stretch old buffer to fill new size, commit/roundtrip to apply */
|
|
||||||
wp_viewport_set_destination(wl->viewport, wl->width, wl->height);
|
wp_viewport_set_destination(wl->viewport, wl->width, wl->height);
|
||||||
wl_surface_commit(wl->surface);
|
|
||||||
wl_display_roundtrip(wl->input.dpy);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
state = wl->libdecor_state_new(wl->width, wl->height);
|
state = wl->libdecor_state_new(wl->width, wl->height);
|
||||||
@ -852,13 +842,8 @@ bool gfx_ctx_wl_set_video_mode_common_size(gfx_ctx_wayland_data_t *wl,
|
|||||||
wl->buffer_height = wl->fractional_scale ?
|
wl->buffer_height = wl->fractional_scale ?
|
||||||
FRACTIONAL_SCALE_MULT(wl->buffer_height, wl->fractional_scale_num) : wl->buffer_height * wl->buffer_scale;
|
FRACTIONAL_SCALE_MULT(wl->buffer_height, wl->fractional_scale_num) : wl->buffer_height * wl->buffer_scale;
|
||||||
}
|
}
|
||||||
if (wl->viewport)
|
if (wl->viewport) /* Update viewport */
|
||||||
{
|
|
||||||
/* Stretch old buffer to fill new size, commit/roundtrip to apply */
|
|
||||||
wp_viewport_set_destination(wl->viewport, wl->width, wl->height);
|
wp_viewport_set_destination(wl->viewport, wl->width, wl->height);
|
||||||
wl_surface_commit(wl->surface);
|
|
||||||
wl_display_roundtrip(wl->input.dpy);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBDECOR_H
|
#ifdef HAVE_LIBDECOR_H
|
||||||
if (wl->libdecor)
|
if (wl->libdecor)
|
||||||
|
Loading…
Reference in New Issue
Block a user