]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/magnifier: fix compile on ancient GCC versions
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 30 Mar 2025 02:12:55 +0000 (04:12 +0200)
committerAndrew J. Hesford <ajh@sideband.org>
Sun, 30 Mar 2025 04:30:05 +0000 (00:30 -0400)
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
```

src/magnifier.c

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