From 5d61784dae5dace556d15e1603d86d565d66cb31 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 15 Jun 2009 11:35:51 +0000 Subject: Remove uglyness with PixelFormat initialization. svn-id: r41541 --- graphics/pixelformat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/pixelformat.h') 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 -- cgit v1.2.3