Code formatting
This commit is contained in:
@@ -75,7 +75,7 @@ int GameMap_LoadLevel(char *filename, int res) {
|
||||
// Build the map
|
||||
map = malloc(sizeof(char) * width * height);
|
||||
memset(map, 0, width * height);
|
||||
#define MAP(x, y) map[(x) + ((y)*width)]
|
||||
#define MAP(x, y) map[(x) + ((y) * width)]
|
||||
j = 0;
|
||||
do {
|
||||
len = ReadLine(file, line, MaxLineLen);
|
||||
|
||||
@@ -107,7 +107,8 @@ void Draw_DrawImgPartHoriz(DrawImg img, int x, int y, int w, int i, const float
|
||||
//
|
||||
//
|
||||
void Draw_ImgParallax(
|
||||
DrawImg img, int imgSize[2], const int imgOffset[2], const float parallaxFactor[2], const int gamePos[2], const int gameSize[2]);
|
||||
DrawImg img, int imgSize[2], const int imgOffset[2], const float parallaxFactor[2], const int gamePos[2],
|
||||
const int gameSize[2]);
|
||||
|
||||
/////////////////////////////
|
||||
// Draw_SetColor
|
||||
|
||||
@@ -299,7 +299,7 @@ static void lodepng_set32bitInt(unsigned char *buffer, unsigned value) {
|
||||
buffer[0] = (unsigned char)((value >> 24) & 0xff);
|
||||
buffer[1] = (unsigned char)((value >> 16) & 0xff);
|
||||
buffer[2] = (unsigned char)((value >> 8) & 0xff);
|
||||
buffer[3] = (unsigned char)((value)&0xff);
|
||||
buffer[3] = (unsigned char)((value) & 0xff);
|
||||
}
|
||||
#endif /*defined(LODEPNG_COMPILE_PNG) || defined(LODEPNG_COMPILE_ENCODER)*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user