Wed, 10 Apr 2024 19:20:44 +0200
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