aboutsummaryrefslogtreecommitdiff
path: root/examples/compositor/main.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-15 08:31:30 -0400
committerGitHub <noreply@github.com>2017-08-15 08:31:30 -0400
commit09faf4ff6430bd93fec4269b35c7a87d14e9e8b3 (patch)
tree56847c7d36a6e361f6a84a56063f9a4cb1819703 /examples/compositor/main.c
parentd2e796edb7256bb2e2b694a13c86e8bee7056309 (diff)
parentd5f98dbf61e3627f46c499a2ecac0e581241299b (diff)
Merge pull request #83 from acrisci/feature/buffer-damage2
Buffer damage and scaling (attempt 2)
Diffstat (limited to 'examples/compositor/main.c')
-rw-r--r--examples/compositor/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/compositor/main.c b/examples/compositor/main.c
index 933e27c7..079f0243 100644
--- a/examples/compositor/main.c
+++ b/examples/compositor/main.c
@@ -45,8 +45,8 @@ void handle_output_frame(struct output_state *output, struct timespec *ts) {
struct wlr_surface *surface = wl_resource_get_user_data(_res);
wlr_surface_flush_damage(surface);
if (surface->texture->valid) {
- wlr_texture_get_matrix(surface->texture, &matrix,
- &wlr_output->transform_matrix, 200, 200);
+ wlr_surface_get_matrix(surface, &matrix,
+ &wlr_output->transform_matrix, 200, 200);
wlr_render_with_matrix(sample->renderer, surface->texture, &matrix);
struct wlr_frame_callback *cb, *cnext;