Make FrameBuffer::flush() a no-op when building outside of SDL.

This commit is contained in:
Andreas Kling 2019-01-12 21:22:54 +01:00
parent 4e9bcd3092
commit 6cc8c3799a
Notes: sideshowbarker 2024-07-19 16:03:40 +09:00
2 changed files with 6 additions and 2 deletions

View file

@ -90,9 +90,9 @@ RGBA32* FrameBuffer::scanline(int y)
#endif
}
#ifdef USE_SDL
void FrameBuffer::flush()
{
#ifdef USE_SDL
SDL_UpdateWindowSurface(m_window);
#endif
}
#endif

View file

@ -25,7 +25,11 @@ public:
RGBA32* scanline(int y);
#ifdef USE_SDL
void flush();
#else
void flush() { }
#endif
static void initialize();