CtrlCore: GuiUnLock

git-svn-id: svn://ultimatepp.org/upp/trunk@12198 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-08-27 08:00:02 +00:00
parent 4217ff97d4
commit 1ec5a3378d

View file

@ -75,6 +75,13 @@ struct GuiLock {
~GuiLock() { LeaveGuiMutex(); }
};
struct GuiUnLock {
int n;
GuiUnLock() { n = LeaveGuiMutexAll(); }
~GuiUnLock() { EnterGuiMutex(n); }
};
bool ScreenInPaletteMode(); // Deprecated
typedef ImageDraw SystemImageDraw;