summaryrefslogtreecommitdiff
path: root/saedit/main.c
diff options
context:
space:
mode:
authorVasily_Makarov <danilka.pro@gmail.com>2011-06-10 13:40:53 +0400
committerVasily_Makarov <danilka.pro@gmail.com>2011-06-10 13:40:53 +0400
commit7aa809718e77504d9ebccde25c3f06770f768384 (patch)
tree9e9ed85b326baa63077cd68312bbc6d61100257c /saedit/main.c
parentf9fd4817f126805eff154c4ca98f9df8f9bfd703 (diff)
downloadevol-tools-7aa809718e77504d9ebccde25c3f06770f768384.tar.gz
evol-tools-7aa809718e77504d9ebccde25c3f06770f768384.tar.bz2
evol-tools-7aa809718e77504d9ebccde25c3f06770f768384.tar.xz
evol-tools-7aa809718e77504d9ebccde25c3f06770f768384.zip
saedit: Add forgotten clearing of ground pixbuf
Diffstat (limited to 'saedit/main.c')
-rw-r--r--saedit/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/saedit/main.c b/saedit/main.c
index d001208..97e5320 100644
--- a/saedit/main.c
+++ b/saedit/main.c
@@ -48,7 +48,7 @@ gboolean on_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer data
cairo_t *cr = gdk_cairo_create(widget->window);
- cairo_set_source_surface(cr, get_grid_surface(w, h), width/2 - GRID_SIZE * (w + 2) * 0.5, height/2 - GRID_SIZE * ((h + 2) * 0.5 - 0.5));
+ cairo_set_source_surface(cr, get_grid_surface(w, h), width/2 - GRID_SIZE * (w + 2) * 0.5, height/2 - GRID_SIZE * (h + 2) * 0.5);
cairo_paint(cr);
GdkPixbuf *pbuf = get_sprite_by_index(current_sprite->index);
@@ -81,7 +81,6 @@ void open_xml_file(GtkButton *button, gpointer buffer) {
}
void free_imagesets() {
- imageset->spriteset = NULL;
imageset = imageset_info_new();
imagesets = NULL;
gtk_list_store_clear(GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(imagesetscombobox))));