mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
meson: add -Wfloat-conversion
This commit is contained in:
parent
2ad25b1460
commit
cf857ecf7b
31 changed files with 220 additions and 204 deletions
|
|
@ -62,10 +62,10 @@ static void render_surface(struct wlr_surface *surface,
|
|||
}
|
||||
|
||||
struct wlr_box box = {
|
||||
.x = sx * output->scale,
|
||||
.y = sy * output->scale,
|
||||
.width = surface->current.width * output->scale,
|
||||
.height = surface->current.height * output->scale,
|
||||
.x = (int)(sx * output->scale),
|
||||
.y = (int)(sy * output->scale),
|
||||
.width = (int)(surface->current.width * output->scale),
|
||||
.height = (int)(surface->current.height * output->scale),
|
||||
};
|
||||
|
||||
float matrix[9];
|
||||
|
|
@ -95,7 +95,7 @@ static void output_handle_frame(struct wl_listener *listener, void *data) {
|
|||
|
||||
wlr_renderer_begin(renderer, width, height);
|
||||
|
||||
float color[4] = {0.3, 0.3, 0.3, 1.0};
|
||||
float color[4] = {0.3f, 0.3f, 0.3f, 1.0f};
|
||||
wlr_renderer_clear(renderer, color);
|
||||
|
||||
if (output->surface != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue