Skip to content

Commit

Permalink
DOME window opens centered on screen
Browse files Browse the repository at this point in the history
  • Loading branch information
avivbeeri committed Oct 17, 2020
1 parent 2fe017f commit 7bdf8e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ ENGINE_start(ENGINE* engine) {
}

//Create window
engine->window = SDL_CreateWindow("DOME", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE);
engine->window = SDL_CreateWindow("DOME", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_HIDDEN | SDL_WINDOW_RESIZABLE);
if(engine->window == NULL)
{
char* message = "Window could not be created! SDL_Error: %s\n";
Expand Down

0 comments on commit 7bdf8e0

Please sign in to comment.