Skip to content

Commit

Permalink
BLADERUNNER: Ensure the Color256 struct is correctly packed (scummvm#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 authored and Lothar Serra Mari committed Oct 5, 2019
1 parent 21e929c commit 24d8f34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engines/bladerunner/color.h
Expand Up @@ -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

Expand Down

0 comments on commit 24d8f34

Please sign in to comment.