Solve some warnings from the compilation
This commit is contained in:
parent
4ad2841809
commit
b1508be822
|
@ -98,7 +98,7 @@ int ImageLoad(char *filename, Image *image) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((i = fread(image->data, size, 1, file)) != 1) {
|
if ((i = fread(image->data, size, 1, file)) != 1) {
|
||||||
printf(stderr, "Error reading image data from %s.\n", filename);
|
printf("Error reading image data from %s.\n", filename);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ int LoadPalettedTex(const char* filename, Image* image) {
|
||||||
} palette_header;
|
} palette_header;
|
||||||
fread(&palette_header, sizeof(palette_header), 1, filein);
|
fread(&palette_header, sizeof(palette_header), 1, filein);
|
||||||
|
|
||||||
image->palette = (unsigned int*) malloc(sizeof(unsigned int) * palette_header.numcolors);
|
image->palette = (char*) malloc(sizeof(unsigned int) * palette_header.numcolors);
|
||||||
image->palette_width = palette_header.numcolors;
|
image->palette_width = palette_header.numcolors;
|
||||||
|
|
||||||
fread(image->palette, sizeof(unsigned int), palette_header.numcolors, filein);
|
fread(image->palette, sizeof(unsigned int), palette_header.numcolors, filein);
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#include <kos.h>
|
#include <kos.h>
|
||||||
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
|
#include <GL/glkos.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
|
@ -193,7 +193,7 @@ int check_start() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderTower(counter) {
|
void RenderTower(int counter) {
|
||||||
counter = counter % 3;
|
counter = counter % 3;
|
||||||
float height = (counter + 1) * 5.0f;
|
float height = (counter + 1) * 5.0f;
|
||||||
float width = 3.5f;
|
float width = 3.5f;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user