diff options
author | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-12 12:33:30 +0400 |
---|---|---|
committer | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-12 12:33:30 +0400 |
commit | b7e4fba486963cc630f7d0ae8e56ac0f9c8393cc (patch) | |
tree | 21de58840cd4561781bc50e771b174e228950fe7 /saedit/main.c | |
parent | 5e831b42ef17b426c575fa315ef68430c4815857 (diff) | |
download | tools-b7e4fba486963cc630f7d0ae8e56ac0f9c8393cc.tar.gz tools-b7e4fba486963cc630f7d0ae8e56ac0f9c8393cc.tar.bz2 tools-b7e4fba486963cc630f7d0ae8e56ac0f9c8393cc.tar.xz tools-b7e4fba486963cc630f7d0ae8e56ac0f9c8393cc.zip |
saedit: Update
Diffstat (limited to 'saedit/main.c')
-rw-r--r-- | saedit/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/saedit/main.c b/saedit/main.c index 0c19f7a..404ca11 100644 --- a/saedit/main.c +++ b/saedit/main.c @@ -32,7 +32,7 @@ cairo_surface_t *get_grid_surface(int w, int h) { for (x = 0; x < w; x++) for (y = 0; y < h; y++) { - gdk_cairo_set_source_pixbuf(cr, gen_sae_info->imageset->ground, x * GRID_SIZE, y * GRID_SIZE); + gdk_cairo_set_source_pixbuf(cr, gen_sae_info->ground, x * GRID_SIZE, y * GRID_SIZE); cairo_paint(cr); } @@ -109,7 +109,8 @@ void free_imagesets(SAEInfo *sae_info) { } void free_imageset(SAEInfo *sae_info) { - sae_info->imageset = imageset_info_new(); + gen_sae_info->imageset = imageset_info_new(); + gen_sae_info->ground = sae_info_ground_new(); gtk_widget_set_sensitive(imageset_preview_menu_item, FALSE); } @@ -431,7 +432,7 @@ void set_up_imageset_by_node(XMLNode *node, SAEInfo *sae_info) { ground_attr = g_strjoin(NULL, DIR_GROUNDS, SEPARATOR_SLASH, ground_attr, ".png", NULL); GdkPixbuf *pbuf = gdk_pixbuf_new_from_file(ground_attr, NULL); if(pbuf != NULL) - sae_info->imageset->ground = pbuf; + sae_info->ground = pbuf; } } |