- attempt to fix Mac OS compile

This commit is contained in:
Rachael Alexanderson 2017-11-18 02:27:24 -05:00
parent 2e2c6fd416
commit 25ca640354

View file

@ -1521,12 +1521,18 @@ void I_SetMainWindowVisible(bool visible)
}
// each platform has its own specific version of this function.
void DFrameBuffer::I_SetWindowTitle(const char* title)
void CocoaVideo::I_SetWindowTitle(const char* title)
{
static NSString* const TITLE_STRING;
static NSString* TITLE_STRING;
if (title)
TITLE_STRING = [NSString stringWithFormat:@"%s", title];
else
TITLE_STRING = [NSString stringWithFormat:@"%s %s", GAMESIG, GetVersionString()];
[m_window setTitle:TITLE_STRING];
}
void DFrameBuffer::I_SetWindowTitle(const char* title)
{
if (Video != nullptr)
Video->I_SetWindowTitle(title);
}