Code formatting

This commit is contained in:
2024-10-06 14:36:43 +02:00
parent d767b95d59
commit 617e0e54f1
5 changed files with 15 additions and 14 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -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)*/