mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
rect fix and some ui new classes
This commit is contained in:
@@ -35,7 +35,7 @@ bool Configs::load(const std::string& fileName)
|
||||
return false;
|
||||
|
||||
std::string fileContents = g_resources.loadTextFile(fileName);
|
||||
if(fileContents.size())
|
||||
if(!fileContents.size())
|
||||
return false;
|
||||
|
||||
std::istringstream fin(fileContents);
|
||||
|
@@ -133,7 +133,7 @@ void Engine::onClose()
|
||||
void Engine::onResize(const Size& size)
|
||||
{
|
||||
g_graphics.resize(size);
|
||||
UIContainer::getRootContainer()->setSize(Size(size.width()-1, size.height()-1));
|
||||
UIContainer::getRootContainer()->setSize(size);
|
||||
|
||||
if(m_currentState)
|
||||
m_currentState->onResize(size);
|
||||
|
Reference in New Issue
Block a user