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
|
|
@ -69,9 +69,9 @@ struct wlr_egl_surface *egl_surface;
|
|||
static void draw(void) {
|
||||
eglMakeCurrent(egl_display, egl_surface, egl_surface, egl_context);
|
||||
|
||||
float color[] = {1.0, 1.0, 0.0, 1.0};
|
||||
color[0] = enabled * 1.0;
|
||||
color[1] = entered * 1.0;
|
||||
float color[] = {1.0f, 1.0f, 0.0f, 1.0f};
|
||||
color[0] = enabled * 1.0f;
|
||||
color[1] = entered * 1.0f;
|
||||
|
||||
glViewport(0, 0, width, height);
|
||||
glClearColor(color[0], color[1], color[2], 1.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue