mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-13 14:32:57 -04:00
wlr_output: Make wlr_output_effective_resolution take state
This commit is contained in:
parent
d65a3fceaf
commit
a8aa9fdf2b
10 changed files with 20 additions and 14 deletions
|
|
@ -92,7 +92,7 @@ static void output_handle_frame(struct wl_listener *listener, void *data) {
|
|||
}
|
||||
|
||||
int width, height;
|
||||
wlr_output_effective_resolution(output->wlr_output, &width, &height);
|
||||
wlr_output_effective_resolution(output->wlr_output, NULL, &width, &height);
|
||||
|
||||
struct wlr_render_pass *pass = wlr_output_begin_render_pass(output->wlr_output, &output_state, NULL);
|
||||
wlr_render_pass_add_rect(pass, &(struct wlr_render_rect_options){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue