summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Manuel Tomas <jtomas1815@gmail.com>2022-01-15 16:49:35 -0300
committerJuan Manuel Tomas <jtomas1815@gmail.com>2022-01-15 16:49:35 -0300
commitb982c6250ab84f6acf0a70c402810a9f6283438d (patch)
tree26dd397e8f9403dc47a2cd6891c6345675445ddb
parent533b50eafe05b41253cc5d33a1f239d2753f3d00 (diff)
downloadcannons-b982c6250ab84f6acf0a70c402810a9f6283438d.tar.gz
cannons-b982c6250ab84f6acf0a70c402810a9f6283438d.zip
Fix indentation
-rw-r--r--main.c16
1 files changed, 8 insertions, 8 deletions
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);