mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-04 17:20:25 +02:00
Address minor issues
This commit is contained in:
@ -219,14 +219,14 @@ void CIrrDeviceSDL::resetReceiveTextInputEvents() {
|
|||||||
gui::IGUIElement *elem = GUIEnvironment->getFocus();
|
gui::IGUIElement *elem = GUIEnvironment->getFocus();
|
||||||
if (elem && elem->acceptsIME())
|
if (elem && elem->acceptsIME())
|
||||||
{
|
{
|
||||||
SDL_StartTextInput();
|
|
||||||
core::rect<s32> pos = elem->getAbsolutePosition();
|
core::rect<s32> pos = elem->getAbsolutePosition();
|
||||||
SDL_Rect rect;
|
SDL_Rect rect;
|
||||||
rect.x = pos.UpperLeftCorner.X;
|
rect.x = pos.UpperLeftCorner.X;
|
||||||
rect.y = pos.UpperLeftCorner.Y;
|
rect.y = pos.UpperLeftCorner.Y;
|
||||||
rect.w = pos.LowerRightCorner.X - rect.x;
|
rect.w = pos.getWidth();
|
||||||
rect.h = pos.LowerRightCorner.Y - rect.y;
|
rect.h = pos.getHeight();
|
||||||
SDL_SetTextInputRect(&rect);
|
SDL_SetTextInputRect(&rect);
|
||||||
|
SDL_StartTextInput();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user