From 6ea62845b975cfa4b0838718aa79342f7f4aad39 Mon Sep 17 00:00:00 2001 From: Joel de Vahl Date: Sat, 21 Jul 2007 20:28:57 +0000 Subject: Working editor. --- src/editor/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/editor/editor.cpp') diff --git a/src/editor/editor.cpp b/src/editor/editor.cpp index 2ad77423..b76dd714 100644 --- a/src/editor/editor.cpp +++ b/src/editor/editor.cpp @@ -293,7 +293,7 @@ static int tilesets_set_img(int index, int w, int h, void *data) if(tilesets[index].img.data) mem_free(tilesets[index].img.data); tilesets[index].img.data = data; - tilesets[index].tex_id = gfx_load_texture_raw(w, h, IMG_BGRA, data); + tilesets[index].tex_id = gfx_load_texture_raw(w, h, IMG_RGBA, data); return index; } @@ -636,7 +636,7 @@ static void editor_listdir_callback(const char *name, int is_dir, void *user) sprintf(buf, "tilesets/%s", name); image_info img; - if(!gfx_load_tga(&img, buf)) + if(!gfx_load_png(&img, buf)) return; tilesets_set_img(editor_loadimage, img.width, img.height, img.data); -- cgit 1.4.1