aboutsummaryrefslogtreecommitdiff
path: root/graphics/pixelformat.h
diff options
context:
space:
mode:
authorEugene Sandulenko2009-06-15 11:35:51 +0000
committerEugene Sandulenko2009-06-15 11:35:51 +0000
commit5d61784dae5dace556d15e1603d86d565d66cb31 (patch)
treed991e4f48f2faefd445bcf9d4d8cc7665d777c12 /graphics/pixelformat.h
parentc97bfd16f94873a437cb92a30ebd11879f114e0c (diff)
downloadscummvm-rg350-5d61784dae5dace556d15e1603d86d565d66cb31.tar.gz
scummvm-rg350-5d61784dae5dace556d15e1603d86d565d66cb31.tar.bz2
scummvm-rg350-5d61784dae5dace556d15e1603d86d565d66cb31.zip
Remove uglyness with PixelFormat initialization.
svn-id: r41541
Diffstat (limited to 'graphics/pixelformat.h')
-rw-r--r--graphics/pixelformat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/pixelformat.h b/graphics/pixelformat.h
index b08321efd7..400385c93a 100644
--- a/graphics/pixelformat.h
+++ b/graphics/pixelformat.h
@@ -76,7 +76,6 @@ struct PixelFormat {
byte rLoss, gLoss, bLoss, aLoss; /**< Precision loss of each color component. */
byte rShift, gShift, bShift, aShift; /**< Binary left shift of each color component in the pixel value. */
-#ifdef ENABLE_16BIT
inline PixelFormat() {
bytesPerPixel =
rLoss = gLoss = bLoss = aLoss =
@@ -91,6 +90,7 @@ struct PixelFormat {
rShift = RShift, gShift = GShift, bShift = BShift, aShift = AShift;
}
+#ifdef ENABLE_16BIT
//Convenience constructor from enum type
//TODO: BGR support
//TODO: Specify alpha position