Minor fix to love.localechanged callback.

Wrong callback placement.
This commit is contained in:
Miku AuahDark
2022-03-18 10:30:31 +08:00
parent 5603c8915b
commit 730cb08acf
2 changed files with 31 additions and 27 deletions
+7 -3
View File
@@ -35,6 +35,8 @@
#include <cmath>
#include <SDL_version.h>
namespace love
{
namespace event
@@ -433,6 +435,11 @@ Message *Event::convert(const SDL_Event &e)
case SDL_APP_LOWMEMORY:
msg = new Message("lowmemory");
break;
#if SDL_VERSION_ATLEAST(2, 0, 14)
case SDL_LOCALECHANGED:
msg = new Message("localechanged");
break;
#endif
default:
break;
}
@@ -551,9 +558,6 @@ Message *Event::convertJoystickEvent(const SDL_Event &e) const
msg = new Message("joystickremoved", vargs);
}
break;
case SDL_LOCALECHANGED:
msg = new Message("localechanged");
break;
default:
break;
}