]> git.draconx.ca Git - liblbx.git/blobdiff - src/gui/render.c
liblbx: Replace feof call with lbx_file_ops.
[liblbx.git] / src / gui / render.c
index 8a1af81991f5c20d231ed5ec220e09eb4ec3fbbf..8e706870533391975d26d116c3ddca392833ff16 100644 (file)
@@ -1,3 +1,21 @@
+/*
+ *  2ooM: The Master of Orion II Reverse Engineering Project
+ *  Routines for rendering LBX images to a GdkPixbuf.
+ *  Copyright (C) 2010 Nick Bowler
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 #include <assert.h>
 #include <gtk/gtk.h>
 
@@ -28,7 +46,7 @@ static void get_colour(unsigned char index, unsigned char out[static 4])
        out[3] = -1; /* opaque */
 }
 
-int render_to_pixbuf(LBX_IMG *image, GdkPixbuf *pixbuf, unsigned frame)
+int render_to_pixbuf(LBXimg *image, GdkPixbuf *pixbuf, unsigned frame)
 {
        unsigned char **framedata, **framemask, *outbuf;
        struct lbx_imginfo info;