From 777e417c0a55ada9659234f2f0b11fa725e5d0f0 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 18 Jan 2013 15:58:25 +0400 Subject: [PATCH] driver/fade.cpp: fix compile for nevis --- src/driver/fade.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/driver/fade.cpp b/src/driver/fade.cpp index 89b049cbb..caefff571 100644 --- a/src/driver/fade.cpp +++ b/src/driver/fade.cpp @@ -53,7 +53,7 @@ void COSDFader::StartFadeIn() fadeIn = true; fadeOut = false; fadeValue = 100; -#ifdef HAVE_COOL_HARDWARE +#ifdef BOXMODEL_APOLLO frameBuffer->setBlendMode(CNXTFB_BLEND_MODE_UNIFORM_ALPHA); // Global alpha multiplied with pixel alpha #else frameBuffer->setBlendMode(2); // Global alpha multiplied with pixel alpha @@ -74,7 +74,7 @@ bool COSDFader::StartFadeOut() if ((!fadeOut) && g_settings.widget_fade) { fadeOut = true; fadeTimer = g_RCInput->addTimer( FADE_TIME, false ); -#ifdef HAVE_COOL_HARDWARE +#ifdef BOXMODEL_APOLLO frameBuffer->setBlendMode(CNXTFB_BLEND_MODE_UNIFORM_ALPHA); // Global alpha multiplied with pixel alpha #else frameBuffer->setBlendMode(2); // Global alpha multiplied with pixel alpha @@ -88,7 +88,7 @@ void COSDFader::Stop() { if ( fadeIn || fadeOut ) { g_RCInput->killTimer(fadeTimer); -#ifdef HAVE_COOL_HARDWARE +#ifdef BOXMODEL_APOLLO frameBuffer->setBlendMode(CNXTFB_BLEND_MODE_PER_PIXEL); // Global alpha multiplied with pixel alpha #else frameBuffer->setBlendMode(1); // Global alpha multiplied with pixel alpha @@ -116,7 +116,7 @@ bool COSDFader::Fade() fadeValue = max_alpha; g_RCInput->killTimer (fadeTimer); fadeIn = false; -#ifdef HAVE_COOL_HARDWARE +#ifdef BOXMODEL_APOLLO frameBuffer->setBlendMode(CNXTFB_BLEND_MODE_PER_PIXEL); // Global alpha multiplied with pixel alpha #else frameBuffer->setBlendMode(1); // Global alpha multiplied with pixel alpha