aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-08-13 17:54:27 -0400
committerTony Crisci <tony@dubstepdish.com>2017-08-15 07:36:50 -0400
commitf0f190bfa5b7ebf2dbb5cc62e20e3b80038382b4 (patch)
treed0072ec7f056d0c08dda34132ac1107d76a3913c /include
parente22e443717fcdae72d4e2e9db22f9929ab010643 (diff)
implement buffer scale
Keep track of the scale of the buffer set by surface.set_buffer_scale. Calculate the height and width of the texture from the buffer depending on the scale when it is attached. Use buffer damage to determine the damage of the buffer when flushing damage. Convert surface damage to buffer damage and union to the surface buffer_damage prior to flushing damage.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/render.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/wlr/render.h b/include/wlr/render.h
index 96b61ddf..90081b7a 100644
--- a/include/wlr/render.h
+++ b/include/wlr/render.h
@@ -61,6 +61,7 @@ struct wlr_texture {
bool valid;
uint32_t format;
int width, height;
+ int height_from_buffer, width_from_buffer;
struct wl_signal destroy_signal;
struct wl_resource *resource;
};