src/magnifier: fix compile on ancient GCC versions

Fixes
```
../src/magnifier.c:153:3: error: missing initializer for field ‘clip’ of ‘struct wlr_render_rect_options’ [-Werror=missing-field-initializers]
  153 |   };
      |   ^
In file included from ../subprojects/wlroots/include/wlr/render/wlr_renderer.h:14,
                 from ../subprojects/wlroots/include/wlr/types/wlr_output.h:17,
                 from ../src/magnifier.c:5:
../subprojects/wlroots/include/wlr/render/pass.h:115:27: note: ‘clip’ declared here
  115 |  const pixman_region32_t *clip
```
This commit is contained in:
Consolatis 2025-03-30 04:12:55 +02:00 committed by Andrew J. Hesford
parent 9479742f46
commit 9f53d7ed25

View file

@ -150,6 +150,7 @@ magnifier_draw(struct output *output, struct wlr_buffer *output_buffer, struct w
.b = theme->mag_border_color[2], .b = theme->mag_border_color[2],
.a = theme->mag_border_color[3] .a = theme->mag_border_color[3]
}, },
.clip = NULL,
}; };
wlr_render_pass_add_rect(tmp_render_pass, &bg_opts); wlr_render_pass_add_rect(tmp_render_pass, &bg_opts);
wlr_box_intersection(&damage_box, &border_box, &output_box); wlr_box_intersection(&damage_box, &border_box, &output_box);