From 1af4932242e637123099512e1aed80181a423687 Mon Sep 17 00:00:00 2001 From: Kostas Nakos Date: Mon, 26 Feb 2007 18:34:00 +0000 Subject: Fix alignment issues in wince port. This patch/bug is closely related to the behavior shown in agos engine (see https://sourceforge.net/tracker/?func=detail&aid=1657436&group_id=37116&atid=418822). Every time structs are used to extract data from a buffer, these structs have to be packed. It is not OK to assume that the compiler does not pad the struct, or that it doesn't have alignment assumptions voodoo (see cited patch). svn-id: r25881 --- engines/agi/sound.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/agi/sound.h') diff --git a/engines/agi/sound.h b/engines/agi/sound.h index 8a4f6a5deb..5f67faa142 100644 --- a/engines/agi/sound.h +++ b/engines/agi/sound.h @@ -56,6 +56,8 @@ struct AgiSound { uint16 type; /**< sound resource type */ }; +#include "common/pack-start.h" + /** * AGI sound note structure. */ @@ -67,6 +69,8 @@ struct AgiNote { uint8 vol; /**< note volume */ }; +#include "common/pack-end.h" + /** * AGI engine sound channel structure. */ -- cgit v1.2.3