git repos / saland

commit 659d1d78

sago007 · 2018-03-17 12:50
659d1d782fc7326b661dad117e1e0dac11575e7a patch · browse files
parent 80ff2b2fa3877f34ca29658ec189db111165e207

Limited scope

Changed files

M src/saland.cpp before
diff --git a/src/saland.cpp b/src/saland.cpp index 374b4ae..23493b0 100644 --- a/src/saland.cpp +++ b/src/saland.cpp
@@ -136,14 +136,13 @@ void RunGameState(sago::GameStateInterface& state ) {
}
void runGame() {
- SDL_Window* win = NULL;
int posX = 100, posY = 100, width = 1024, height = 768;
SDL_Init(SDL_INIT_VIDEO);
IMG_Init(IMG_INIT_PNG);
TTF_Init();
Mix_Init(MIX_INIT_OGG);
- win = SDL_CreateWindow("Saland Adventures", posX, posY, width, height, 0);
+ SDL_Window* win = SDL_CreateWindow("Saland Adventures", posX, posY, width, height, 0);
globalData.screen = SDL_CreateRenderer(win, -1, SDL_RENDERER_ACCELERATED);
sago::SagoDataHolder holder(globalData.screen);
globalData.spriteHolder.reset(new sago::SagoSpriteHolder(holder));