From f6847163a68b81e97352d6e1ee489f4e0fdf7bd8 Mon Sep 17 00:00:00 2001 From: cowsed Date: Sun, 25 Feb 2024 14:37:02 -0500 Subject: [PATCH] no warnings in core --- src/subsystems/fun/video.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/subsystems/fun/video.cpp b/src/subsystems/fun/video.cpp index 4763c12..df9aae9 100644 --- a/src/subsystems/fun/video.cpp +++ b/src/subsystems/fun/video.cpp @@ -33,7 +33,9 @@ void explain_error(vex::brain::lcd &screen) { screen.printAt(40, 30, true, "%s was too big to open", name.c_str()); break; case DidntReadRight: - screen.printAt(40, 30, true, "%s wasnt read correctly. Are you sure its mpeg1", name.c_str()); + screen.printAt(40, 30, true, + "%s wasnt read correctly. Are you sure its mpeg1", + name.c_str()); break; case NeverInitialized: screen.printAt(40, 30, true, "no video loaded. did you forget set_video()"); @@ -50,7 +52,7 @@ int video_player() { } plm_frame_t *frame = NULL; while (true) { - for (int i = 1; frame = plm_decode_video(plm); i++) { + for (int i = 1; (frame = plm_decode_video(plm)); i++) { uint32_t start_ms = vex::timer::system(); @@ -108,7 +110,8 @@ void set_video(const std::string &filename) { VideoPlayer::VideoPlayer() {} void VideoPlayer::update(bool was_pressed, int x, int y) {} -void VideoPlayer::draw(vex::brain::lcd &screen, bool first_draw, unsigned int frame_number) { +void VideoPlayer::draw(vex::brain::lcd &screen, bool first_draw, + unsigned int frame_number) { if (state != Ok) { explain_error(screen); return;