]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/image/jpeg.cpp
radiant: also list images from dds/textures/ as textures/ ones
[xonotic/netradiant.git] / plugins / image / jpeg.cpp
index 138151a2f62c81de5270f9188ff211d53c59a745..91fdf18e39cc54641170c71d9e8b7090b90555ef 100644 (file)
@@ -66,7 +66,7 @@ typedef struct {
 
 typedef my_source_mgr * my_src_ptr;
 
-#define INPUT_BUF_SIZE  4096    /* choose an efficiently fread'able size */
+const int INPUT_BUF_SIZE = 4096;    /* choose an efficiently fread'able size */
 
 
 /*
@@ -316,6 +316,7 @@ static void j_putRGBAScanline( unsigned char* jpegline, int widthPix, unsigned c
 
                //!\todo fix jpeglib, it leaves alpha channel uninitialised
 #if 1
+               (void) iAlp;
                *oAlp = 255;
 #else
                *oAlp = iAlp;