aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-08-14 13:54:57 -0400
committerTony Crisci <tony@dubstepdish.com>2017-08-15 07:36:51 -0400
commite46ec57b43054705a6ff649ba358c5d14cccbca5 (patch)
tree24c3aef8f63e573e3d5520a961ebcc06242852ef /examples
parentb49650b5552d4323a23a1662761d87bb084421a4 (diff)
implement surface sizing
Diffstat (limited to 'examples')
-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;