diff --git a/src/main.cc b/src/main.cc index d6dac1e..d35c8d9 100644 --- a/src/main.cc +++ b/src/main.cc @@ -32,6 +32,9 @@ #define MAIN_MENU_WINDOW_WIDTH 640 #define MAIN_MENU_WINDOW_HEIGHT 480 +#define DEATH_WINDOW_WIDTH 640 +#define DEATH_WINDOW_HEIGHT 480 + // 0x5194C8 char _mainMap[] = "artemple.map"; @@ -356,7 +359,14 @@ void showDeath() mouseShowCursor(); } - int win = windowCreate(0, 0, 640, 480, 0, WINDOW_FLAG_0x04); + int deathWindowX = (screenGetWidth() - DEATH_WINDOW_WIDTH) / 2; + int deathWindowY = (screenGetHeight() - DEATH_WINDOW_HEIGHT) / 2; + int win = windowCreate(deathWindowX, + deathWindowY, + DEATH_WINDOW_WIDTH, + DEATH_WINDOW_HEIGHT, + 0, + WINDOW_FLAG_0x04); if (win != -1) { do { unsigned char* windowBuffer = windowGetBuffer(win);