1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

fixed some things

This commit is contained in:
scrawl 2012-09-14 17:25:32 +02:00
parent 7c59b83419
commit 35f7216f2f
2 changed files with 3 additions and 2 deletions

View File

@ -92,6 +92,7 @@ namespace MWGui
mBoughtItems.clear();
onWindowResize(static_cast<MyGUI::Window*>(mMainWidget));
drawItems();
}
void InventoryWindow::onWindowResize(MyGUI::Window* _sender)
@ -293,7 +294,7 @@ namespace MWGui
MyGUI::IntSize size = mAvatar->getSize();
MWBase::Environment::get().getWorld()->updateCharacterPreview (size.width, size.height);
mAvatarImage->setSize(MyGUI::IntSize(512, 1024));
mAvatarImage->setSize(MyGUI::IntSize(std::max(mAvatar->getSize().width, 512), std::max(mAvatar->getSize().height, 1024)));
mAvatarImage->setImageTexture("CharacterPreview");
}

View File

@ -368,7 +368,7 @@ NifOgre::EntityList NpcAnimation::insertBoundedPart(const std::string &mesh, int
void NpcAnimation::runAnimation(float timepassed)
{
//if(timeToChange > .2)
if(timeToChange > .2)
{
timeToChange = 0;
updateParts();