Skip to content
Permalink
Browse files

BLADERUNNER: Ensure the Color256 struct is correctly packed (#1838)

  • Loading branch information...
ccawley2011 authored and peterkohaut committed Sep 11, 2019
1 parent 1ed2cd4 commit 5413e89a6b6dd419fdfe3993dac203c8b3425b13
Showing with 5 additions and 1 deletion.
  1. +5 −1 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

0 comments on commit 5413e89

Please sign in to comment.
You can’t perform that action at this time.