aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner
diff options
context:
space:
mode:
authorCameron Cawley2019-09-11 17:47:44 +0100
committerPeter Kohaut2019-09-11 18:47:44 +0200
commit5413e89a6b6dd419fdfe3993dac203c8b3425b13 (patch)
tree2296728998a2446e48db39e627216508e0b4158f /engines/bladerunner
parent1ed2cd40f3213720cd33d96fca9f6516b5589189 (diff)
downloadscummvm-rg350-5413e89a6b6dd419fdfe3993dac203c8b3425b13.tar.gz
scummvm-rg350-5413e89a6b6dd419fdfe3993dac203c8b3425b13.tar.bz2
scummvm-rg350-5413e89a6b6dd419fdfe3993dac203c8b3425b13.zip
BLADERUNNER: Ensure the Color256 struct is correctly packed (#1838)
Diffstat (limited to 'engines/bladerunner')
-rw-r--r--engines/bladerunner/color.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/bladerunner/color.h b/engines/bladerunner/color.h
index beec53760b..8123f775d1 100644
--- a/engines/bladerunner/color.h
+++ b/engines/bladerunner/color.h
@@ -37,11 +37,15 @@ struct Color {
Color(float r_, float g_, float b_) : r(r_), g(g_), b(b_) {}
};
+#include "common/pack-start.h"
+
struct Color256 {
uint8 r;
uint8 g;
uint8 b;
-};
+} PACKED_STRUCT;
+
+#include "common/pack-end.h"
} // End of namespace BladeRunner