4 A z80 parameter passing bug.
9 typedef unsigned char u8
;
11 typedef struct WindowPositionStruct
17 typedef struct WindowSizeStruct
23 typedef struct WindowPositionAndSizeStruct
25 WindowPosition mPosition
;
27 } WindowPositionAndSize
;
29 typedef struct WindowRenderStyleStruct
34 typedef struct WindowStruct
36 WindowPositionAndSize mPositionAndSize
;
38 WindowRenderStyle
* mpStyle
;
41 void BG_FillRect( u8 x
, u8 y
, u8 w
, u8 h
, u8 f
)
50 static Window gWindow
;
51 static WindowRenderStyle gWindowRenderStyle
;
56 gWindow
.mpStyle
= &gWindowRenderStyle
;
57 gWindow
.mPositionAndSize
.mPosition
.mX
= 1;
58 gWindow
.mPositionAndSize
.mPosition
.mY
= 2;
59 gWindow
.mPositionAndSize
.mSize
.mW
= 3;
60 gWindow
.mPositionAndSize
.mSize
.mH
= 4;
63 Window
* pWindow
= &gWindow
;
66 pWindow
->mPositionAndSize
.mPosition
.mX
,
67 pWindow
->mPositionAndSize
.mPosition
.mY
,
68 pWindow
->mPositionAndSize
.mSize
.mW
,
69 pWindow
->mPositionAndSize
.mSize
.mH
,
70 pWindow
->mpStyle
->mStateColor
[state
]