diff options
author | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-12 20:41:09 +0400 |
---|---|---|
committer | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-12 20:41:09 +0400 |
commit | 253f4c580f3bd5f47eee84d616359b56ea0cc6e9 (patch) | |
tree | 4b9cfe9f70dc1c181b4a35fdc1abf5f23380799d /saedit | |
parent | 374cdef443cbc994a8b3aae608d53809eb9174f5 (diff) | |
download | evol-tools-253f4c580f3bd5f47eee84d616359b56ea0cc6e9.tar.gz evol-tools-253f4c580f3bd5f47eee84d616359b56ea0cc6e9.tar.bz2 evol-tools-253f4c580f3bd5f47eee84d616359b56ea0cc6e9.tar.xz evol-tools-253f4c580f3bd5f47eee84d616359b56ea0cc6e9.zip |
saedit: Correct sprites location
Diffstat (limited to 'saedit')
-rw-r--r-- | saedit/main.c | 8 | ||||
-rwxr-xr-x | saedit/saedit | bin | 457419 -> 457367 bytes |
2 files changed, 4 insertions, 4 deletions
diff --git a/saedit/main.c b/saedit/main.c index 9cddf2a..858fa31 100644 --- a/saedit/main.c +++ b/saedit/main.c @@ -73,7 +73,7 @@ gboolean darea_expose_event(GtkWidget *widget, GdkEventExpose *event, SAEInfo *s if (pbuf == NULL) return FALSE; gdk_cairo_set_source_pixbuf(cr, pbuf, width/2 - player->imageset->width/2 + player->offsetX + player->sprite->offsetX + player->imageset->offsetX, - height/2 - player->imageset->height/2 + player->offsetY + player->sprite->offsetY + player->imageset->offsetY); + height/2 + GRID_SIZE/2 - player->imageset->height + player->offsetY + player->sprite->offsetY + player->imageset->offsetY); cairo_paint(cr); } @@ -81,7 +81,7 @@ gboolean darea_expose_event(GtkWidget *widget, GdkEventExpose *event, SAEInfo *s if (pbuf == NULL) return FALSE; gdk_cairo_set_source_pixbuf(cr, pbuf, width/2 - sae_info->imageset->width/2 + sae_info->offsetX + sae_info->sprite->offsetX + sae_info->imageset->offsetX, - height/2 - sae_info->imageset->height/2 + sae_info->offsetY + sae_info->sprite->offsetY + sae_info->imageset->offsetY); + height/2 +GRID_SIZE/2 - sae_info->imageset->height + sae_info->offsetY + sae_info->sprite->offsetY + sae_info->imageset->offsetY); cairo_paint(cr); cairo_destroy(cr); @@ -532,12 +532,12 @@ void parse_xml_text(gchar *text, SAEInfo *sae_info) { sae_info->offsetX = 0; sae_info->offsetY = 0; - gchar *name_attr = xml_node_get_attr_value(_root_node, "name"); + /*gchar *name_attr = xml_node_get_attr_value(_root_node, "name"); gchar *action_attr = xml_node_get_attr_value(_root_node, "action"); if (name_attr != NULL && action_attr != NULL) if (g_strcmp0(name_attr, "player") == 0 && g_strcmp0(action_attr, "stand") == 0) - sae_info->offsetY = -16; + sae_info->offsetY = -16;*/ if (!set_up_imagesets(sae_info)) { show_wrong_source_buffer_dialog(); diff --git a/saedit/saedit b/saedit/saedit Binary files differindex c6e06f1..205ad80 100755 --- a/saedit/saedit +++ b/saedit/saedit |