rect fix and some ui new classes

This commit is contained in:
Eduardo Bart
2011-04-12 02:51:09 -03:00
parent 92ac4093a4
commit 0f7f7827f5
17 changed files with 143 additions and 7 deletions

View File

@@ -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);

View File

@@ -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);