diff --git a/bocm b/bocm index d16bcd6..a117542 100755 Binary files a/bocm and b/bocm differ diff --git a/functions.c b/functions.c index 5e52700..d31c6d9 100644 --- a/functions.c +++ b/functions.c @@ -47,10 +47,17 @@ int loadBackgroundColor(void){ return 0; } -int presentLogo(void){ - SDL_Rect rect = {10, 10, 100, 73}; - SDL_RenderCopy(renderer, texture, NULL, &rect); - SDL_RenderPresent(renderer); +int locLogo(void){ + SDL_Rect srcrect = {0, 0, 100, 73}; + SDL_Rect dstrect = {10, 10, 100, 73}; + SDL_RenderCopy(renderer, texture, &srcrect, &dstrect); + return 0; +} + +int locStars(void){ + SDL_Rect srcrect = {1, 32, 22, 21}; + SDL_Rect dstrect = {100, 100, 22, 21}; + SDL_RenderCopy(renderer, texture, &srcrect, &dstrect); return 0; } diff --git a/loop.c b/loop.c index e9d7c2d..ba65ebe 100644 --- a/loop.c +++ b/loop.c @@ -10,7 +10,11 @@ int windowLoop(void){ } loadBackgroundColor(); - presentLogo(); + locLogo(); + locStars(); + + SDL_RenderPresent(renderer); + } return 0; }