Fixed pi compilation.

This commit is contained in:
hiker 2016-12-07 00:28:36 +11:00
parent 63fe4373a8
commit 95e627c004

View File

@ -99,6 +99,7 @@ CGUIEditBox::CGUIEditBox(const wchar_t* text, bool border,
//! destructor //! destructor
CGUIEditBox::~CGUIEditBox() CGUIEditBox::~CGUIEditBox()
{ {
#ifndef SERVER_ONLY
if (OverrideFont) if (OverrideFont)
OverrideFont->drop(); OverrideFont->drop();
@ -108,6 +109,7 @@ CGUIEditBox::~CGUIEditBox()
CIrrDeviceLinux* dl = dynamic_cast<CIrrDeviceLinux*>(irr_driver->getDevice()); CIrrDeviceLinux* dl = dynamic_cast<CIrrDeviceLinux*>(irr_driver->getDevice());
dl->setIMEEnable(false); dl->setIMEEnable(false);
#endif #endif
#endif
} }
@ -235,6 +237,7 @@ void CGUIEditBox::setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT ver
//! called if an event happened. //! called if an event happened.
bool CGUIEditBox::OnEvent(const SEvent& event) bool CGUIEditBox::OnEvent(const SEvent& event)
{ {
#ifndef SERVER_ONLY
if (isEnabled()) if (isEnabled())
{ {
@ -280,7 +283,7 @@ bool CGUIEditBox::OnEvent(const SEvent& event)
break; break;
} }
} }
#endif
return IGUIElement::OnEvent(event); return IGUIElement::OnEvent(event);
} }
@ -1565,6 +1568,7 @@ void CGUIEditBox::inputChar(wchar_t c)
void CGUIEditBox::calculateScrollPos() void CGUIEditBox::calculateScrollPos()
{ {
#ifndef SERVER_ONLY
if (!AutoScroll) if (!AutoScroll)
return; return;
@ -1618,6 +1622,7 @@ void CGUIEditBox::calculateScrollPos()
dl->setIMELocation(calculateICPos()); dl->setIMELocation(calculateICPos());
} }
#endif #endif
#endif // SERVER_ONLY
} }
//! set text markers //! set text markers