summaryrefslogtreecommitdiff
path: root/saedit/sae.c
diff options
context:
space:
mode:
authorVasily <danilka.pro@gmail.com>2015-10-31 22:58:45 +0300
committerVasily <danilka.pro@gmail.com>2015-10-31 22:58:45 +0300
commita15e0dc0d9801f10c486cca776250d3407f9b847 (patch)
treed33cd292ae366f836b41ba5c4b4fedf8cb9550e1 /saedit/sae.c
parentaff48535003524bc5f0707c3b4da4cc7b86fb5dc (diff)
downloadevol-tools-a15e0dc0d9801f10c486cca776250d3407f9b847.tar.gz
evol-tools-a15e0dc0d9801f10c486cca776250d3407f9b847.tar.bz2
evol-tools-a15e0dc0d9801f10c486cca776250d3407f9b847.tar.xz
evol-tools-a15e0dc0d9801f10c486cca776250d3407f9b847.zip
saedit: Replaced overused size_t with int
Diffstat (limited to 'saedit/sae.c')
-rw-r--r--saedit/sae.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/saedit/sae.c b/saedit/sae.c
index 4f22cf2..70e7c7d 100644
--- a/saedit/sae.c
+++ b/saedit/sae.c
@@ -46,8 +46,7 @@ GdkPixbuf *sae_info_ground_new() {
return ground;
}
-GdkPixbuf* get_sprite_by_index(size_t index1, SAEInfo *sae_info) {
- // error because index1 is unsigned
+GdkPixbuf* get_sprite_by_index(int index1, SAEInfo *sae_info) {
if (index1 == -1) {
GdkPixbuf *res = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8,
sae_info->imageset->width,
@@ -56,7 +55,6 @@ GdkPixbuf* get_sprite_by_index(size_t index1, SAEInfo *sae_info) {
return res;
}
- // error because index1 is unsigned
if (index1 >= 0) {
size_t w = sae_info->imageset->spriteset_width/sae_info->imageset->width;
if (sae_info->imageset->spriteset == NULL) return NULL;
@@ -71,7 +69,7 @@ GdkPixbuf* get_sprite_by_index(size_t index1, SAEInfo *sae_info) {
return NULL;
}
-inline void _add_frame(SAEInfo *sae_info, size_t index1, size_t offsetX, size_t offsetY, size_t delay, size_t line) {
+inline void _add_frame(SAEInfo *sae_info, int index1, int offsetX, int offsetY, int delay, int line) {
Frame *sprite = frame_new(index1, offsetX, offsetY, delay);
sprite->line_number = line;