Mercurial > molko
comparison src/libmlk-core/core/texture.c @ 423:63ebfa352ae1
core: use err.h in font
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 15 Oct 2022 14:00:38 +0200 |
parents | 3edda1ce314c |
children | 1645433e008d |
comparison
equal
deleted
inserted
replaced
422:b0579ae033ed | 423:63ebfa352ae1 |
---|---|
164 assert(tex); | 164 assert(tex); |
165 assert(surface); | 165 assert(surface); |
166 | 166 |
167 if (!(tex->handle = SDL_CreateTextureFromSurface(RENDERER(), surface))) { | 167 if (!(tex->handle = SDL_CreateTextureFromSurface(RENDERER(), surface))) { |
168 tex->w = tex->h = 0; | 168 tex->w = tex->h = 0; |
169 return errorf("%s", SDL_GetError()); | 169 return ERR_INTERNAL; |
170 } | 170 } |
171 | 171 |
172 tex->w = surface->w; | 172 tex->w = surface->w; |
173 tex->h = surface->h; | 173 tex->h = surface->h; |
174 | 174 |