aboutsummaryrefslogtreecommitdiff
path: root/src/gfx/inc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-27 13:41:14 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-27 17:38:12 +0100
commitdaf6f84ccdf817f7088aa527b4b37c2cca91c052 (patch)
treef2676fd88c5c87bc7731fc9a92ecad898ee0d689 /src/gfx/inc
parentda33e4668b23d3280f96d2ec0df68a829a0ef2d5 (diff)
downloadjancity-daf6f84ccdf817f7088aa527b4b37c2cca91c052.tar.gz
gfx: Add return value to *_sort functions
Diffstat (limited to 'src/gfx/inc')
-rw-r--r--src/gfx/inc/gfx.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gfx/inc/gfx.h b/src/gfx/inc/gfx.h
index a6a16bc..99deeeb 100644
--- a/src/gfx/inc/gfx.h
+++ b/src/gfx/inc/gfx.h
@@ -17,14 +17,14 @@ int gfx_set_fullscreen(short w, short h);
bool gfx_fullscreen_available(void);
bool gfx_fullscreen(void);
int gfx_display_size(short *w, short *h);
-void sprite_sort(struct sprite *s);
+int sprite_sort(struct sprite *s);
int sprite_clone(const struct sprite *src, struct sprite *dst);
void rect_init(struct rect *r);
void semitrans_rect_init(struct rect *r);
void stp_4line_init(struct stp_4line *l);
-void quad_sort(struct quad *q);
-void rect_sort(struct rect *r);
-void stp_4line_sort(struct stp_4line *l);
+int quad_sort(struct quad *q);
+int rect_sort(struct rect *r);
+int stp_4line_sort(struct stp_4line *l);
int sprite_from_fp(struct sprite *s, FILE *f);
int quad_from_sprite(const struct sprite *s, struct quad *q);
bool gfx_inside_drawenv(short x, short y, short w, short h);