9 lines
261 B
C++
9 lines
261 B
C++
#include "window.h"
|
|
|
|
void window_title_from_path_set(SDL_Window* self, const std::string& path)
|
|
{
|
|
if (!path.empty())
|
|
SDL_SetWindowTitle(self, std::format(WINDOW_TITLE_FORMAT, path).c_str());
|
|
else
|
|
SDL_SetWindowTitle(self, WINDOW_TITLE);
|
|
} |