src/text.c

changeset 52
6d100092fcd4
parent 50
d8d2e4817db1
child 53
19faf91d43d7
equal deleted inserted replaced
51:a656496594f9 52:6d100092fcd4
74 ); 74 );
75 if (surface == NULL) { 75 if (surface == NULL) {
76 asc_error(SDL_GetError()); 76 asc_error(SDL_GetError());
77 return; 77 return;
78 } 78 }
79 node->base.scale.width = (float) surface->w; 79 asc_set_scale2d(&node->base, surface->w, surface->h);
80 node->base.scale.height = (float) surface->h;
81 asc_update_transform((AscSceneNode *) node); 80 asc_update_transform((AscSceneNode *) node);
82 81
83 // Transfer Image Data 82 // Transfer Image Data
84 asc_texture_from_surface(&node->tex, surface); 83 asc_texture_from_surface(&node->tex, surface);
85 84

mercurial