aboutsummaryrefslogtreecommitdiff
path: root/graphics/scaler
diff options
context:
space:
mode:
authorMax Horn2006-04-17 10:22:05 +0000
committerMax Horn2006-04-17 10:22:05 +0000
commitea85e8c986189ef0143343e9de6d9279dcf09096 (patch)
treeb0df61ac99f5e0a02ac4abc023c4d56bf0388c47 /graphics/scaler
parentbbac9e43ee2d29eb76a792225d7f936382169810 (diff)
downloadscummvm-rg350-ea85e8c986189ef0143343e9de6d9279dcf09096.tar.gz
scummvm-rg350-ea85e8c986189ef0143343e9de6d9279dcf09096.tar.bz2
scummvm-rg350-ea85e8c986189ef0143343e9de6d9279dcf09096.zip
Moved ColorMasks to their own new header graphics/colormasks.h, so that both the scalers and the GUI code can access them. Also added (untested) entries for 1555, 444, 888 and 8888 modes
svn-id: r21966
Diffstat (limited to 'graphics/scaler')
-rw-r--r--graphics/scaler/intern.h37
1 files changed, 5 insertions, 32 deletions
diff --git a/graphics/scaler/intern.h b/graphics/scaler/intern.h
index fa3ca1823a..e618d46a42 100644
--- a/graphics/scaler/intern.h
+++ b/graphics/scaler/intern.h
@@ -21,47 +21,20 @@
*
*/
-
-#ifndef COMMON_SCALER_INTERN_H
-#define COMMON_SCALER_INTERN_H
+#ifndef GRAPHICS_SCALER_INTERN_H
+#define GRAPHICS_SCALER_INTERN_H
#include "common/stdafx.h"
#include "common/scummsys.h"
+#include "graphics/colormasks.h"
-template<int bitFormat>
-struct ColorMasks {
-};
-
-template<>
-struct ColorMasks<565> {
- enum {
- highBits = 0xF7DEF7DE,
- lowBits = 0x08210821,
- qhighBits = 0xE79CE79C,
- qlowBits = 0x18631863,
- redblueMask = 0xF81F,
- greenMask = 0x07E0
- };
-};
-
-template<>
-struct ColorMasks<555> {
- enum {
- highBits = 0x7BDE7BDE,
- lowBits = 0x04210421,
- qhighBits = 0x739C739C,
- qlowBits = 0x0C630C63,
- redblueMask = 0x7C1F,
- greenMask = 0x03E0
- };
-};
#define highBits ColorMasks<bitFormat>::highBits
#define lowBits ColorMasks<bitFormat>::lowBits
#define qhighBits ColorMasks<bitFormat>::qhighBits
#define qlowBits ColorMasks<bitFormat>::qlowBits
-#define redblueMask ColorMasks<bitFormat>::redblueMask
-#define greenMask ColorMasks<bitFormat>::greenMask
+#define redblueMask ColorMasks<bitFormat>::kRedBlueMask
+#define greenMask ColorMasks<bitFormat>::kGreenMask
/**