diff options
author | Eugene Sandulenko | 2009-06-15 11:35:51 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-06-15 11:35:51 +0000 |
commit | 5d61784dae5dace556d15e1603d86d565d66cb31 (patch) | |
tree | d991e4f48f2faefd445bcf9d4d8cc7665d777c12 /graphics/pixelformat.h | |
parent | c97bfd16f94873a437cb92a30ebd11879f114e0c (diff) | |
download | scummvm-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.h | 2 |
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 |