From 15d835e4c36dd4cc2d17d2d09f782590cea5e57a Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Fri, 18 Nov 2016 19:21:02 -0700 Subject: [PATCH] whatever: Added assets dir --- sdl/whatever/{ => assets}/dinowheel.bmp | Bin sdl/whatever/{ => assets}/sdl_logo.bmp | Bin sdl/whatever/whatever.c | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename sdl/whatever/{ => assets}/dinowheel.bmp (100%) rename sdl/whatever/{ => assets}/sdl_logo.bmp (100%) diff --git a/sdl/whatever/dinowheel.bmp b/sdl/whatever/assets/dinowheel.bmp similarity index 100% rename from sdl/whatever/dinowheel.bmp rename to sdl/whatever/assets/dinowheel.bmp diff --git a/sdl/whatever/sdl_logo.bmp b/sdl/whatever/assets/sdl_logo.bmp similarity index 100% rename from sdl/whatever/sdl_logo.bmp rename to sdl/whatever/assets/sdl_logo.bmp diff --git a/sdl/whatever/whatever.c b/sdl/whatever/whatever.c index 569542a..c1958fb 100644 --- a/sdl/whatever/whatever.c +++ b/sdl/whatever/whatever.c @@ -224,7 +224,7 @@ int init() int loadMedia() { - const char background_imagefile[] = "sdl_logo.bmp"; + const char background_imagefile[] = "assets/sdl_logo.bmp"; gRenderer = SDL_CreateRenderer(gScreen, -1, 0); @@ -250,7 +250,7 @@ int loadMedia() } /* load gPlayer image to practice blit on top of surface*/ - gTemp = SDL_LoadBMP("dinowheel.bmp"); + gTemp = SDL_LoadBMP("assets/dinowheel.bmp"); if (gTemp == NULL){ printf("Unable to load gPlayer: %s/n", SDL_GetError()); return 1;