mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:58:14 +00:00
Make FrameBuffer::flush() a no-op when building outside of SDL.
This commit is contained in:
parent
4e9bcd3092
commit
6cc8c3799a
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -25,7 +25,11 @@ public:
|
|||
|
||||
RGBA32* scanline(int y);
|
||||
|
||||
#ifdef USE_SDL
|
||||
void flush();
|
||||
#else
|
||||
void flush() { }
|
||||
#endif
|
||||
|
||||
static void initialize();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue