mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
output-layer: add support for scaling buffers
This allows callers to set a destination size different from the buffer size to scale them. The DRM backend supports this. The Wayland backend doesn't yet (we'd need to wire up viewporter).
This commit is contained in:
parent
89dcecba39
commit
835208db98
5 changed files with 27 additions and 16 deletions
|
|
@ -196,10 +196,10 @@ static bool set_layer_props(struct wlr_drm_backend *drm,
|
|||
return false;
|
||||
}
|
||||
|
||||
uint64_t crtc_x = (uint64_t)state->x;
|
||||
uint64_t crtc_y = (uint64_t)state->y;
|
||||
uint64_t crtc_w = (uint64_t)width;
|
||||
uint64_t crtc_h = (uint64_t)height;
|
||||
uint64_t crtc_x = (uint64_t)state->dst_box.x;
|
||||
uint64_t crtc_y = (uint64_t)state->dst_box.y;
|
||||
uint64_t crtc_w = (uint64_t)state->dst_box.width;
|
||||
uint64_t crtc_h = (uint64_t)state->dst_box.height;
|
||||
|
||||
uint64_t src_x = to_fp16(0);
|
||||
uint64_t src_y = to_fp16(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue