From 51329c0dc6ee56d8b843f058aa3257ec9f30b71a Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 8 Nov 2017 16:46:05 -0600 Subject: ALL: Fix misuse of comma operator --- graphics/pixelformat.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'graphics/pixelformat.h') diff --git a/graphics/pixelformat.h b/graphics/pixelformat.h index 6b22a14142..af964b0ee1 100644 --- a/graphics/pixelformat.h +++ b/graphics/pixelformat.h @@ -149,8 +149,14 @@ struct PixelFormat { byte RBits, byte GBits, byte BBits, byte ABits, byte RShift, byte GShift, byte BShift, byte AShift) { bytesPerPixel = BytesPerPixel; - rLoss = 8 - RBits, gLoss = 8 - GBits, bLoss = 8 - BBits, aLoss = 8 - ABits; - rShift = RShift, gShift = GShift, bShift = BShift, aShift = AShift; + rLoss = 8 - RBits; + gLoss = 8 - GBits; + bLoss = 8 - BBits; + aLoss = 8 - ABits; + rShift = RShift; + gShift = GShift; + bShift = BShift; + aShift = AShift; } static inline PixelFormat createFormatCLUT8() { -- cgit v1.2.3