summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-10-12 11:10:52 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-10-12 11:10:52 +0200
commita4b49d1a5703d441854b21bf00bb0cfbf8b66df4 (patch)
tree73ddd3d81597cc3eb97a9bffee93b305c754a371 /source
parent95ca6d4933c193be02c97bdef4614929e2491f39 (diff)
downloadsaw-a4b49d1a5703d441854b21bf00bb0cfbf8b66df4.zip
fix duplicate bug
Diffstat (limited to 'source')
-rw-r--r--source/saw/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/saw/main.c b/source/saw/main.c
index a10af64..b8d79a9 100644
--- a/source/saw/main.c
+++ b/source/saw/main.c
@@ -586,8 +586,7 @@ static void saw_ui_compose(i64 x0, i64 y0, i64 width, i64 height) {
if (p->enabled && p->track == track &&
((p->time >= frame && p->time < frame + roll->duration) ||
- (frame >= p->time &&
- frame < p->time + p->time + p->duration))) {
+ (frame >= p->time && frame < p->time + p->duration))) {
collision = 1;
break;
}
@@ -1982,7 +1981,7 @@ sapp_desc sokol_main(i32 argc, char **argv) {
printf("Unknown command line argument: \"%s\"\n", argv[i]);
if (print_version) {
- printf("saw %d.%d.%d"
+ printf("Saw v%d.%d.%d"
#if SAW_VERSION_DEV
"_dev"
#endif
@@ -1997,7 +1996,7 @@ sapp_desc sokol_main(i32 argc, char **argv) {
fflush(stdout);
return (sapp_desc) {
- .window_title = "saw",
+ .window_title = "Saw",
.width = 1280,
.height = 720,
.init_cb = saw_init,