This commit is contained in:
2018-12-05 00:35:13 +03:00
parent df3fa60b10
commit da3c47e65b
8 changed files with 164 additions and 2 deletions

Binary file not shown.

View File

@@ -7,7 +7,7 @@ const int scren_height = 480;
SDL_Window* win = NULL;
SDL_Renderer* ren = NULL;
SDL_Texture* LoadImage(const char path[])
SDL_Texture* LoadImage(const char* path)
{
SDL_Surface* loadedImage = NULL;
SDL_Texture* texture = NULL;
@@ -62,7 +62,7 @@ int main()
int bW, bH;
SDL_QueryTexture(background, NULL, NULL, &bW, &bH);
//cout << bW << " " << bH << endl;
cout << bW << " " << bH << endl;
ApplySurfaces( 0, 0, background, ren);
ApplySurfaces( bW, 0, background, ren);
ApplySurfaces( 0, bH, background, ren);