sowon
sowon copied to clipboard
Starting Soon Timer for Tsoding Streams
``` main.c:53:38: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] SDL_Surface *load_png_file_as_surface() ^ void 1 warning generated. ```
Accurate delta time and frame rate capping. It uses only SDL functions. Should be cross platform. I tested it on WLS and Windows.
Hi!!! I added a variable `float start_time` in `main()` to save the initial timer time, so there is no need to parse it again on F5. Also restarting with F5...
When restarting with F5, this for loop will try to `parse_time` all flags other than `-p` https://github.com/tsoding/sowon/blob/eb3a37c4dbd996e3c077a840b18852d4af25367f/main.c#L238-L253 So when running with `-e` or `clock` mode and hit `F5`, the application...
I noticed that although `displayed_time` is initially set to zero, the timer shows 00:00:00 only for a split second before jumping to 00:00:01. Setting `displayed_time = -1.0f;` will ensure that...
Just like as in the [tsoding/boomer tool](https://github.com/tsoding/boomer) a hit on the escape key will now close `sowon`. Earlier behavior, had to do mod+Shift+q in [i3-wm](https://i3wm.org/) to quit the app.
Added Descending-Mode arguments and exit flag to Documentation.
Example use case: `sowon 30m && sudo shutdown`