Half of day 32.

This commit is contained in:
igor
2026-04-11 20:08:36 -07:00
parent 1635bebb5d
commit e13e4f44e6
4 changed files with 83 additions and 101 deletions
+5 -2
View File
@@ -313,6 +313,7 @@ static void HandleEvent(SDL_Event *Event)
case SDL_WINDOWEVENT_EXPOSED: {
} break;
#if 0
case SDL_WINDOWEVENT_FOCUS_GAINED: {
if(SDL_SetWindowOpacity(Window, 1.0f) != 0) {
/* TODO: This didn't work . . . SDL_GetError() */
@@ -324,6 +325,7 @@ static void HandleEvent(SDL_Event *Event)
/* TODO: This didn't work . . . SDL_GetError() */
}
} break;
#endif
}
} break;
}
@@ -759,8 +761,9 @@ S32 main(S32 argc, char *argv[])
Window = SDL_CreateWindow("Handmade Hero", SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
RESOLUTION_WIDTH, RESOLUTION_HEIGHT,
SDL_WINDOW_RESIZABLE |
SDL_WINDOW_ALWAYS_ON_TOP);
SDL_WINDOW_RESIZABLE);
/*SDL_WINDOW_RESIZABLE |
SDL_WINDOW_ALWAYS_ON_TOP);*/
if(Window) {
SDL_Renderer *Renderer;