- fix compile on Linux

This commit is contained in:
raa-eruanna 2017-11-18 02:20:55 -05:00
parent 027dc99348
commit 2e2c6fd416
2 changed files with 8 additions and 2 deletions

View file

@ -553,8 +553,9 @@ ADD_STAT (blit)
}
// each platform has its own specific version of this function.
void DFrameBuffer::I_SetWindowTitle(const char* caption)
void SDLFB::I_SetWindowTitle(const char* caption)
{
Screen = GetSDLWindow();
if (caption)
SDL_SetWindowTitle(Screen, caption);
else
@ -564,3 +565,6 @@ void DFrameBuffer::I_SetWindowTitle(const char* caption)
SDL_SetWindowTitle(Screen, default_caption);
}
}
void DFrameBuffer::I_SetWindowTitle(const char* caption)
{
}

View file

@ -30,8 +30,9 @@ public:
virtual void SetVSync(bool vsync);
virtual void ScaleCoordsFromWindow(int16_t &x, int16_t &y);
SDL_Window *GetSDLWindow() override { return Screen; }
void I_SetWindowTitle(const char* caption);
SDL_Window *GetSDLWindow() override { return Screen; }
private:
PalEntry SourcePalette[256];
uint8_t GammaTable[3][256];
@ -57,4 +58,5 @@ private:
void ResetSDLRenderer();
SDLFB() {}
void I_SetWindowTitle();
};