use new scale2d function in text update

Wed, 10 Apr 2024 19:20:44 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 10 Apr 2024 19:20:44 +0200
changeset 52
6d100092fcd4
parent 51
a656496594f9
child 53
19faf91d43d7

use new scale2d function in text update

src/text.c file | annotate | diff | comparison | revisions
--- a/src/text.c	Wed Apr 10 19:16:26 2024 +0200
+++ b/src/text.c	Wed Apr 10 19:20:44 2024 +0200
@@ -76,8 +76,7 @@
         asc_error(SDL_GetError());
         return;
     }
-    node->base.scale.width = (float) surface->w;
-    node->base.scale.height = (float) surface->h;
+    asc_set_scale2d(&node->base, surface->w, surface->h);
     asc_update_transform((AscSceneNode *) node);
 
     // Transfer Image Data

mercurial