aboutsummaryrefslogtreecommitdiff
path: root/graphics/pixelformat.h
diff options
context:
space:
mode:
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