aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Persson2005-06-14 20:04:26 +0000
committerLars Persson2005-06-14 20:04:26 +0000
commit655fb934a83b372baf009fa9d7320d47c55ecf66 (patch)
treeb6d4aa4de62559d3aef329d76bdcf25b9dbdca3c
parent1d9930e8d99bb8441b7faa7ad2c75083fedf5f02 (diff)
downloadscummvm-rg350-655fb934a83b372baf009fa9d7320d47c55ecf66.tar.gz
scummvm-rg350-655fb934a83b372baf009fa9d7320d47c55ecf66.tar.bz2
scummvm-rg350-655fb934a83b372baf009fa9d7320d47c55ecf66.zip
Added struct packning to palette struct && added check for define __WINS__ for symbian build
svn-id: r18391
-rw-r--r--gob/video.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/gob/video.h b/gob/video.h
index 1ab0bb5a85..4589fc7feb 100644
--- a/gob/video.h
+++ b/gob/video.h
@@ -22,10 +22,10 @@
#ifndef GOB_VIDEO_H
#define GOB_VIDEO_H
-namespace Gob {
-
#include "stdafx.h"
#include "common/util.h"
+
+namespace Gob {
#define VID_SET_CURSOR(val) { _AH = 1; _CX = (val); geninterrupt(0x10); }
#define VID_RESTORE_MODE { _AX = 3; geninterrupt(0x10); }
@@ -95,11 +95,19 @@ typedef char (*DrawPackedSpriteFunc) (byte *sprBuf, int16 width, int16 height,
#define RETURN_PRIMARY 0x01
#define DISABLE_SPR_ALLOC 0x20
+#if !defined(__GNUC__)
+ #pragma START_PACK_STRUCTS
+#endif
+
typedef struct Color {
byte red;
byte green;
byte blue;
-} Color;
+} GCC_PACK Color;
+
+#if !defined(__GNUC__)
+ #pragma END_PACK_STRUCTS
+#endif
typedef struct PalDesc {
Color *vgaPal;