This commit is contained in:
2025-06-19 05:29:06 -04:00
parent 9929e69f22
commit 91190987ed
30 changed files with 2754 additions and 475 deletions

15
src/window.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include "window.h"
/* Sets the window title from the given anm2 */
void
window_title_from_anm2_set(SDL_Window* self, Anm2* anm2)
{
if (!strcmp(anm2->path, STRING_EMPTY) == 0)
{
char windowTitle[WINDOW_TITLE_MAX];
snprintf(windowTitle, WINDOW_TITLE_MAX, STRING_WINDOW_TITLE_EDITING, anm2->path);
SDL_SetWindowTitle(self, windowTitle);
}
else
SDL_SetWindowTitle(self, STRING_WINDOW_TITLE);
}