From b982c6250ab84f6acf0a70c402810a9f6283438d Mon Sep 17 00:00:00 2001 From: Juan Manuel Tomas Date: Sat, 15 Jan 2022 16:49:35 -0300 Subject: Fix indentation --- main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 260328c..c5c60af 100644 --- a/main.c +++ b/main.c @@ -13,9 +13,9 @@ SDL_Texture *createTiledTexture(SDL_Renderer *context, const char *filename) { SDL_FreeSurface(texture_surface); SDL_Texture *texture = SDL_CreateTexture(context, - SDL_PIXELFORMAT_RGBA8888, - SDL_TEXTUREACCESS_STATIC | SDL_TEXTUREACCESS_TARGET, - WINDOW_W, WINDOW_H); + SDL_PIXELFORMAT_RGBA8888, + SDL_TEXTUREACCESS_STATIC | SDL_TEXTUREACCESS_TARGET, + WINDOW_W, WINDOW_H); SDL_SetRenderTarget(context, texture); for (int y = 0; y < WINDOW_H; y += tile_h) { for (int x = 0; x < WINDOW_W; x += tile_w) { @@ -48,7 +48,7 @@ int main() { SDL_SetTextureBlendMode(foreground, SDL_BLENDMODE_BLEND); SDL_Surface *mask_surface = SDL_CreateRGBSurfaceWithFormat(0, - WINDOW_W, WINDOW_H, 32, SDL_PIXELFORMAT_RGBA8888); + WINDOW_W, WINDOW_H, 32, SDL_PIXELFORMAT_RGBA8888); SDL_LockSurface(mask_surface); for (int i = 0; i < mask_surface->w * mask_surface->h; i++) { @@ -63,11 +63,11 @@ int main() { SDL_BlendMode true_mul = SDL_ComposeCustomBlendMode( SDL_BLENDFACTOR_ZERO, - SDL_BLENDFACTOR_SRC_COLOR, - SDL_BLENDOPERATION_ADD, + SDL_BLENDFACTOR_SRC_COLOR, + SDL_BLENDOPERATION_ADD, SDL_BLENDFACTOR_ONE, - SDL_BLENDFACTOR_ZERO, - SDL_BLENDOPERATION_ADD); + SDL_BLENDFACTOR_ZERO, + SDL_BLENDOPERATION_ADD); SDL_SetTextureBlendMode(terrain, true_mul); SDL_SetRenderTarget(context, foreground); -- cgit v1.2.3