summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);