Mercurial > molko
comparison libmlk-core/mlk/core/texture.c @ 461:d7874f11565f
core: color -> mlk_color
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Feb 2023 09:46:20 +0100 |
parents | 773a082f0b91 |
children | bc5483849614 |
comparison
equal
deleted
inserted
replaced
460:8fa69c770569 | 461:d7874f11565f |
---|---|
88 int | 88 int |
89 texture_set_color_mod(struct texture *tex, unsigned long color) | 89 texture_set_color_mod(struct texture *tex, unsigned long color) |
90 { | 90 { |
91 assert(texture_ok(tex)); | 91 assert(texture_ok(tex)); |
92 | 92 |
93 if (SDL_SetTextureColorMod(tex->handle, COLOR_R(color), COLOR_G(color), COLOR_B(color)) < 0) | 93 if (SDL_SetTextureColorMod(tex->handle, MLK_COLOR_R(color), MLK_COLOR_G(color), MLK_COLOR_B(color)) < 0) |
94 return errorf("%s", SDL_GetError()); | 94 return errorf("%s", SDL_GetError()); |
95 | 95 |
96 return 0; | 96 return 0; |
97 } | 97 } |
98 | 98 |