|
OpenTTD Source 20260218-master-g2123fca5ea
|
Helper struct to ensure the video buffer is locked and ready for drawing. More...
#include <video_driver.hpp>
Private Attributes | |
| bool | unlock |
| Stores if the lock did anything that has to be undone. | |
Helper struct to ensure the video buffer is locked and ready for drawing.
The destructor will make sure the buffer is unlocked no matter how the scope is exited.
Definition at line 215 of file video_driver.hpp.
|
inline |
Definition at line 216 of file video_driver.hpp.
|
inline |
Definition at line 221 of file video_driver.hpp.
|
private |
Stores if the lock did anything that has to be undone.
Definition at line 227 of file video_driver.hpp.