remove unnecessary parameters

Fri, 12 Apr 2024 22:23:31 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 12 Apr 2024 22:23:31 +0200
changeset 60
3954c551ded3
parent 59
764fbb013252
child 61
b7954818a6b7

remove unnecessary parameters

test/snake.c file | annotate | diff | comparison | revisions
--- a/test/snake.c	Fri Apr 12 22:22:07 2024 +0200
+++ b/test/snake.c	Fri Apr 12 22:23:31 2024 +0200
@@ -70,7 +70,7 @@
 static void create_score_counter(void) {
     asc_set_font(asc_font(ASC_FONT_BOLD, 14));
     asc_ink_rgb(0, 255, 0);
-    AscSceneNode* node = asc_text( .x = 0, .y = 0, .text = "Score: 0" );
+    AscSceneNode* node = asc_text(.text = "Score: 0" );
     asc_scene_add_behavior(node, update_score_counter);
     asc_add_ui_node(node);
 }

mercurial