Skip to content

Commit

Permalink
tr2/shell: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Dec 30, 2024
1 parent 8e3971d commit c8f6428
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
37 changes: 0 additions & 37 deletions src/tr2/game/shell/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,43 +475,6 @@ bool Shell_IsFullscreen(void)
return (flags & SDL_WINDOW_FULLSCREEN_DESKTOP) != 0;
}

void Shell_GoFullscreen(void)
{
g_Config.window.is_fullscreen = true;
g_Config.window.is_maximized = false;
M_SyncToWindow();
M_RefreshRendererViewport();
if (g_Config.loaded) {
Config_Write();
}
}

void Shell_GoMaximized(void)
{
g_Config.window.is_fullscreen = false;
g_Config.window.is_maximized = true;
M_SyncToWindow();
M_RefreshRendererViewport();
if (g_Config.loaded) {
Config_Write();
}
}

void Shell_GoWindowed(int32_t x, int32_t y, int32_t width, int32_t height)
{
g_Config.window.is_fullscreen = false;
g_Config.window.is_maximized = false;
g_Config.window.x = x;
g_Config.window.y = y;
g_Config.window.width = width;
g_Config.window.height = height;
M_SyncToWindow();
M_RefreshRendererViewport();
if (g_Config.loaded) {
Config_Write();
}
}

// TODO: try to call this function in a single place after introducing phases.
void Shell_ProcessEvents(void)
{
Expand Down
4 changes: 0 additions & 4 deletions src/tr2/game/shell/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ const char *Shell_GetGameflowPath(void);
void Shell_ProcessEvents(void);

bool Shell_IsFullscreen(void);

void Shell_GoFullscreen(void);
void Shell_GoMaximized(void);
void Shell_GoWindowed(int32_t x, int32_t y, int32_t width, int32_t height);

0 comments on commit c8f6428

Please sign in to comment.