Removed DUSK_ prefix
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user