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

Method LockVideoBuffer

src/video/win32_v.cpp:1089–1098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087}
1088
1089bool VideoDriver_Win32Base::LockVideoBuffer()
1090{
1091 if (this->buffer_locked) return false;
1092 this->buffer_locked = true;
1093
1094 _screen.dst_ptr = this->GetVideoPointer();
1095 assert(_screen.dst_ptr != nullptr);
1096
1097 return true;
1098}
1099
1100void VideoDriver_Win32Base::UnlockVideoBuffer()
1101{

Callers

nothing calls this directly

Calls 1

GetVideoPointerMethod · 0.45

Tested by

no test coverage detected