driver/framebuffer.cpp: move fade sleep workaround to fade.cpp

This commit is contained in:
[CST] Focus
2013-01-23 11:57:27 +04:00
parent ca3ac51881
commit 3f7ddf58a5
2 changed files with 4 additions and 3 deletions

View File

@@ -88,10 +88,11 @@ void COSDFader::Stop()
{
if ( fadeIn || fadeOut ) {
g_RCInput->killTimer(fadeTimer);
usleep(40000);
#ifdef BOXMODEL_APOLLO
frameBuffer->setBlendMode(CNXTFB_BLEND_MODE_PER_PIXEL); // Global alpha multiplied with pixel alpha
frameBuffer->setBlendMode(CNXTFB_BLEND_MODE_PER_PIXEL); // Global alpha multiplied with pixel alpha
#else
frameBuffer->setBlendMode(1); // Global alpha multiplied with pixel alpha
frameBuffer->setBlendMode(1); // Global alpha multiplied with pixel alpha
#endif
fadeIn = fadeOut = false;
}