basics
This commit is contained in:
15
src/window.cpp
Normal file
15
src/window.cpp
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user