MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / LockVideoBuffer

Method LockVideoBuffer

src/video/sdl2_v.cpp:736–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736bool VideoDriver_SDL_Base::LockVideoBuffer()
737{
738 if (this->buffer_locked) return false;
739 this->buffer_locked = true;
740
741 _screen.dst_ptr = this->GetVideoPointer();
742 assert(_screen.dst_ptr != nullptr);
743
744 return true;
745}
746
747void VideoDriver_SDL_Base::UnlockVideoBuffer()
748{

Callers

nothing calls this directly

Calls 1

GetVideoPointerMethod · 0.45

Tested by

no test coverage detected