From d9b93e6e7b8f1df241d91d48f4711563427d2d88 Mon Sep 17 00:00:00 2001 From: Logan Aerl Arias Date: Sun, 10 Mar 2024 10:45:55 -0400 Subject: [PATCH] remove video modes from dedicated and dummy interfaces --- src/dedicated/i_video.c | 26 -------------------------- src/dummy/i_net.c | 1 + src/dummy/i_sound.c | 16 ++++++++-------- src/dummy/i_video.c | 7 ------- 4 files changed, 9 insertions(+), 41 deletions(-) diff --git a/src/dedicated/i_video.c b/src/dedicated/i_video.c index 2c998117a..ef73a1546 100644 --- a/src/dedicated/i_video.c +++ b/src/dedicated/i_video.c @@ -19,26 +19,6 @@ void I_SetPalette(RGBA_t *palette) (void)palette; } -INT32 VID_NumModes(void) -{ - return 0; -} - -INT32 VID_GetModeForSize(INT32 w, INT32 h) -{ - (void)w; - (void)h; - return 0; -} - -void VID_PrepareModeList(void){} - -INT32 VID_SetMode(INT32 modenum) -{ - (void)modenum; - return 0; -} - boolean VID_CheckRenderer(void) { return false; @@ -49,12 +29,6 @@ void VID_CheckGLLoaded(rendermode_t oldrender) (void)oldrender; } -const char *VID_GetModeName(INT32 modenum) -{ - (void)modenum; - return NULL; -} - UINT32 I_GetRefreshRate(void) { return 35; } void I_UpdateNoBlit(void){} diff --git a/src/dummy/i_net.c b/src/dummy/i_net.c index 4c30dc767..38049796e 100644 --- a/src/dummy/i_net.c +++ b/src/dummy/i_net.c @@ -2,5 +2,6 @@ boolean I_InitNetwork(void) { + // NOTE: this is no longer used. return false; } diff --git a/src/dummy/i_sound.c b/src/dummy/i_sound.c index 436187805..36e3d1ebb 100644 --- a/src/dummy/i_sound.c +++ b/src/dummy/i_sound.c @@ -106,8 +106,8 @@ UINT32 I_GetSongLength(void) boolean I_SetSongLoopPoint(UINT32 looppoint) { - (void)looppoint; - return false; + (void)looppoint; + return false; } UINT32 I_GetSongLoopPoint(void) @@ -117,13 +117,13 @@ UINT32 I_GetSongLoopPoint(void) boolean I_SetSongPosition(UINT32 position) { - (void)position; - return false; + (void)position; + return false; } UINT32 I_GetSongPosition(void) { - return 0; + return 0; } /// ------------------------ @@ -208,7 +208,7 @@ boolean I_FadeOutStopSong(UINT32 ms) boolean I_FadeInPlaySong(UINT32 ms, boolean looping) { - (void)ms; - (void)looping; - return false; + (void)ms; + (void)looping; + return false; } diff --git a/src/dummy/i_video.c b/src/dummy/i_video.c index 5449f3188..ef73a1546 100644 --- a/src/dummy/i_video.c +++ b/src/dummy/i_video.c @@ -19,13 +19,6 @@ void I_SetPalette(RGBA_t *palette) (void)palette; } -void VID_SetSize(INT32 width, INT32 height) -{ - (void)width; - (void)height; - return 0; -} - boolean VID_CheckRenderer(void) { return false;