mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
Merge branch 'vesodev-fix-#2'
This commit is contained in:
commit
cd6a8d3229
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue