aboutsummaryrefslogtreecommitdiff
path: root/examples/compositor/main.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-08 13:12:16 -0400
committerGitHub <noreply@github.com>2017-08-08 13:12:16 -0400
commitba87585bbe7f119d6ebd9d13c85af15d82aa9431 (patch)
treeec186a0475956d7ac1ff100c81a74bee5900f84c /examples/compositor/main.c
parent622a0d838b2d645ab8f649c6804276262d1eec50 (diff)
parente167f41fde7532ca453a9a70ad1e3f27d7177071 (diff)
Merge pull request #48 from nyorain/wlr_texture
Rename wlr_surface -> wlr_texture; attach -> upload
Diffstat (limited to 'examples/compositor/main.c')
-rw-r--r--examples/compositor/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/compositor/main.c b/examples/compositor/main.c
index c618961d..6afdb391 100644
--- a/examples/compositor/main.c
+++ b/examples/compositor/main.c
@@ -32,11 +32,11 @@ void handle_output_frame(struct output_state *output, struct timespec *ts) {
struct wl_resource *_res;
float matrix[16];
wl_list_for_each(_res, &sample->compositor.surfaces, link) {
- struct wlr_surface *surface = wl_resource_get_user_data(_res);
- if (surface->valid) {
- wlr_surface_get_matrix(surface, &matrix,
+ struct wlr_texture *texture = wl_resource_get_user_data(_res);
+ if (texture->valid) {
+ wlr_texture_get_matrix(texture, &matrix,
&wlr_output->transform_matrix, 200, 200);
- wlr_render_with_matrix(sample->renderer, surface, &matrix);
+ wlr_render_with_matrix(sample->renderer, texture, &matrix);
}
}