mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
Make FrameBuffer::flush() a no-op when building outside of SDL.
This commit is contained in:
parent
4e9bcd3092
commit
6cc8c3799a
Notes:
sideshowbarker
2024-07-19 16:03:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6cc8c3799ac
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
Reference in a new issue