Fix broken IrrDriver::cancelResChange

This commit is contained in:
Benau
2022-08-29 11:06:12 +08:00
parent 3d9828b6e3
commit 97bc2696db
2 changed files with 2 additions and 2 deletions

View File

@@ -1171,7 +1171,7 @@ void IrrDriver::cancelResChange()
// is actually called from the gui, i.e. the event loop, i.e. while the
// old device is active - so we can't delete this device (which we must
// do in applyResolutionSettings)
m_resolution_changing=RES_CHANGE_SAME;
m_resolution_changing=RES_CHANGE_CANCEL;
} // cancelResChange

View File

@@ -114,7 +114,7 @@ private:
* the confirmation dialog needs an additional warning message.
* Same indicates a change of the resolution (back to the original
* one), but no confirmation dialog. */
enum {RES_CHANGE_NONE, RES_CHANGE_YES,
enum {RES_CHANGE_NONE, RES_CHANGE_YES, RES_CHANGE_CANCEL,
RES_CHANGE_SAME, RES_CHANGE_YES_WARN} m_resolution_changing;