summaryrefslogtreecommitdiff
path: root/saedit/main.c
diff options
context:
space:
mode:
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))));