Fixed wrong time elapsed in UIManager.

Fixed backgorunds drawable alpha.

--HG--
branch : dev
This commit is contained in:
Martín Lucas Golini
2017-12-17 02:58:47 -03:00
parent 26543d73e7
commit 1902a22783
3 changed files with 5 additions and 1 deletions

View File

@@ -140,6 +140,7 @@ void UIBackground::draw( Rectf R, const Float& alpha ) {
}
if ( NULL != mDrawable ) {
mDrawable->setAlpha( alpha );
mDrawable->draw( R.getPosition(), R.getSize() );
}
}

View File

@@ -83,6 +83,8 @@ void UIManager::init( Uint32 Flags, EE::Window::Window * window ) {
mCbId = mKM->pushCallback( cb::Make1( this, &UIManager::inputCallback ) );
mResizeCb = mWindow->pushResizeCallback( cb::Make1( this, &UIManager::resizeControl ) );
mClock.restart();
}
void UIManager::shutdown() {
@@ -203,7 +205,7 @@ void UIManager::sendMsg( UIControl * Ctrl, const Uint32& Msg, const Uint32& Flag
}
void UIManager::update() {
mElapsed = mWindow->getElapsed();
mElapsed = mClock.getElapsed();
bool wasDraggingControl = isControlDragging();