From b64ada0dfec5895d14bd0d41cb83779d093970fe Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 12 Jul 2018 18:43:31 -0400 Subject: Whitespace changes --- util.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util.cpp') diff --git a/util.cpp b/util.cpp index 868161f..5ccfe51 100644 --- a/util.cpp +++ b/util.cpp @@ -11,7 +11,7 @@ void wrap(int* x, int* y) { *x = *x-WIDTH; } - + if (*y < 0) { *y = HEIGHT-(0-*y); @@ -53,10 +53,10 @@ SDL_Texture* loadImage(SDL_Renderer* renderer, std::string file) std::cout << SDL_GetError() << std::endl; return NULL; } - + SDL_Texture* texture = SDL_CreateTextureFromSurface(renderer, surface); SDL_FreeSurface(surface); - + return texture; } @@ -66,6 +66,6 @@ void applyTexture(SDL_Renderer* renderer, SDL_Texture* tex, int x, int y) pos.x = x; pos.y = y; SDL_QueryTexture(tex, NULL, NULL, &pos.w, &pos.h); - + SDL_RenderCopy(renderer, tex, NULL, &pos); } \ No newline at end of file -- cgit 1.4.1