1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Ensured this array is properly aligned for the uin32_t accesses I intend to make for background drawing.

This commit is contained in:
Thomas Harte 2017-02-08 20:25:23 -05:00
parent dcb7584060
commit 70745286a5

View File

@ -92,7 +92,7 @@ class TIA {
int output_mode_;
// keeps track of the target pixel buffer for this line and when it was acquired, and a corresponding collision buffer
uint8_t collision_buffer_[160];
alignas(alignof(uint32_t)) uint8_t collision_buffer_[160];
enum class CollisionType : uint8_t {
Playfield = (1 << 0),
Ball = (1 << 1),