Removed DUSK_ prefix

This commit is contained in:
2025-08-23 10:13:49 -05:00
parent 1bf6fe6eaf
commit 1dfde00317
28 changed files with 148 additions and 101 deletions

View File

@@ -16,7 +16,7 @@
display_t DISPLAY;
errorret_t displayInit(void) {
#if DUSK_DISPLAY_SDL2
#if DISPLAY_SDL2
if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_GAMECONTROLLER) != 0) {
errorThrow("SDL Failed to Initialize: %s", SDL_GetError());
}
@@ -65,7 +65,7 @@ errorret_t displayInit(void) {
}
errorret_t displayUpdate(void) {
#if DUSK_DISPLAY_SDL2
#if DISPLAY_SDL2
SDL_Event event;
while(SDL_PollEvent(&event)) {
switch(event.type) {
@@ -86,7 +86,7 @@ errorret_t displayUpdate(void) {
rendererRender(CAMERA_MAIN);
#if DUSK_DISPLAY_SDL2
#if DISPLAY_SDL2
SDL_GL_SwapWindow(DISPLAY.window);
#endif
@@ -95,7 +95,7 @@ errorret_t displayUpdate(void) {
}
errorret_t displayDispose(void) {
#if DUSK_DISPLAY_SDL2
#if DISPLAY_SDL2
if(DISPLAY.glContext) {
SDL_GL_DeleteContext(DISPLAY.glContext);
DISPLAY.glContext = NULL;