Mercurial > molko
changeset 179:5d1b7d123401
core: constify texture drawing function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 27 Oct 2020 14:07:04 +0100 |
parents | 49639211d63b |
children | 43aec6678cad |
files | libcore/core/texture.c libcore/core/texture.h |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libcore/core/texture.c Tue Oct 27 14:06:34 2020 +0100 +++ b/libcore/core/texture.c Tue Oct 27 14:07:04 2020 +0100 @@ -51,7 +51,7 @@ } bool -texture_draw(struct texture *tex, int x, int y) +texture_draw(const struct texture *tex, int x, int y) { assert(tex); @@ -69,7 +69,7 @@ } bool -texture_scale(struct texture *tex, +texture_scale(const struct texture *tex, int src_x, int src_y, unsigned src_w,
--- a/libcore/core/texture.h Tue Oct 27 14:06:34 2020 +0100 +++ b/libcore/core/texture.h Tue Oct 27 14:07:04 2020 +0100 @@ -74,7 +74,7 @@ * \return False in case of rendering error. */ bool -texture_draw(struct texture *tex, int x, int y); +texture_draw(const struct texture *tex, int x, int y); /** * Advanced texture drawing. @@ -93,7 +93,7 @@ * \return False in case of rendering error. */ bool -texture_scale(struct texture *tex, +texture_scale(const struct texture *tex, int src_x, int src_y, unsigned src_w,