From 4a9b3f470723b96d6f54cc5ff3c66614929649a5 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 7 Oct 2008 22:19:36 +0200 Subject: [PATCH] Simplify CDsa::SetCopyFunction(). --- src/video/symbian/dsa.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/video/symbian/dsa.cpp b/src/video/symbian/dsa.cpp index edf28a4..7ab28c8 100644 --- a/src/video/symbian/dsa.cpp +++ b/src/video/symbian/dsa.cpp @@ -357,21 +357,12 @@ void CDsa::ClipCopy(TUint8* aTarget, void CDsa::SetCopyFunction() { - //calculate offset to correct function in iCFTable according to given parameters - int function = 0; - const int KCopyFunctions = 1; - const int KOffsetToNative = 0; - const int KOffsetTo256 = KOffsetToNative + KCopyFunctions; - const int KOffsetToOtherModes = KOffsetTo256 + KCopyFunctions; - if(iSourceMode == DisplayMode()) - function = KOffsetToNative; + iCopyFunction = iCFTable[0]; else if(iSourceMode == EColor256) - function = KOffsetTo256; + iCopyFunction = iCFTable[1]; else - function = KOffsetToOtherModes; - - iCopyFunction = iCFTable[function]; + iCopyFunction = iCFTable[2]; } inline void Rotate(TRect& aRect) -- 2.11.4.GIT