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
|
|
@ -87,9 +87,9 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
|
|||
wlr_output_commit(wlr_output);
|
||||
|
||||
//TODO rotate with a delta time
|
||||
rotation += 0.05;
|
||||
rotation += 0.05f;
|
||||
if (rotation > 2 * M_PI) {
|
||||
rotation = 0.f;
|
||||
rotation = 0.0f;
|
||||
}
|
||||
|
||||
sample->last_frame = now;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue