Merge branch 'devsave' of collaborating.tuhh.de:czg6669/breakout into devsave

This commit is contained in:
Michael Chen 2018-02-01 14:49:22 +01:00
commit eb0341bd3d
2 changed files with 2 additions and 2 deletions

View File

@ -25,11 +25,11 @@ void BACKGROUND_Initialize(SDL_Renderer * renderer, int width, int height){
printf("Initializing Background...\n");
BACKGROUND_BoxWidth = width;
BACKGROUND_BoxHeight = height;
BACKGROUND_TextureCount = 1;
BACKGROUND_TextureCount = 2;
BACKGROUND_TotalRect = (SDL_Rect) {.x = 0, .y = 0, .w = 1920, .h = 1080 };
BACKGROUND_Textures = malloc(BACKGROUND_TextureCount * sizeof(SDL_Texture *));
BACKGROUND_Textures[0] = IMG_LoadTexture(renderer, BG_Path_1);
// BACKGROUND_Textures[1] = IMG_LoadTexture(renderer, BG_Path_2);
BACKGROUND_Textures[1] = IMG_LoadTexture(renderer, BG_Path_2);
// BACKGROUND_Textures[2] = IMG_LoadTexture(renderer, BG_Path_3);
printf("Background initialized!\n");
BACKGROUND_IsInit = true;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 2.5 KiB