Merge branch 'vesodev-fix-#2'

This commit is contained in:
wizbright 2018-07-16 14:58:18 -05:00
commit cd6a8d3229

View file

@ -24,11 +24,11 @@ void output_frame_notify(struct wl_listener *listener, void *data) {
} }
struct wlr_box render_box = { struct wlr_box render_box = {
.x = 20, .y = 20, .x = 20, .y = 20,
.width = surface->current->width, .width = surface->current.width,
.height = surface->current->height .height = surface->current.height
}; };
float matrix[16]; float matrix[16];
wlr_matrix_project_box(matrix, &render_box, surface->current->transform, wlr_matrix_project_box(matrix, &render_box, surface->current.transform,
0, wlr_output->transform_matrix); 0, wlr_output->transform_matrix);
struct wlr_texture *texture = wlr_surface_get_texture(surface); struct wlr_texture *texture = wlr_surface_get_texture(surface);
wlr_render_texture_with_matrix(renderer, texture, matrix, 1.0f); wlr_render_texture_with_matrix(renderer, texture, matrix, 1.0f);