aboutsummaryrefslogtreecommitdiff
path: root/graphics/pixelformat.h
diff options
context:
space:
mode:
authorColin Snover2017-11-08 16:46:05 -0600
committerColin Snover2017-11-10 09:57:03 -0600
commit51329c0dc6ee56d8b843f058aa3257ec9f30b71a (patch)
tree85a171532e169bcce6f34a8c3d06555863ab4d0d /graphics/pixelformat.h
parent2de83e09374abd10700e5f2bc4671318f182980b (diff)
downloadscummvm-rg350-51329c0dc6ee56d8b843f058aa3257ec9f30b71a.tar.gz
scummvm-rg350-51329c0dc6ee56d8b843f058aa3257ec9f30b71a.tar.bz2
scummvm-rg350-51329c0dc6ee56d8b843f058aa3257ec9f30b71a.zip
ALL: Fix misuse of comma operator
Diffstat (limited to 'graphics/pixelformat.h')
-rw-r--r--graphics/pixelformat.h10
1 files changed, 8 insertions, 2 deletions
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() {