--- xmil/win9x/dclock.h 2004/08/01 05:31:31 1.1 +++ xmil/win9x/dclock.h 2004/08/04 10:49:21 1.2 @@ -1,35 +1,42 @@ -#define DCLOCK_X 56 -#define DCLOCK_Y 12 - -typedef struct { - BYTE dclock_flm[8]; - BYTE dclock_now[8]; - BYTE dclock_bak[8]; - WORD dclock_drawing; -} DCLOCK_T; +enum { + DCLOCK_X = 56, + DCLOCK_Y = 12 +}; typedef struct { - BYTE *dclock_pos; - WORD dclock_mask; - BYTE dclock_rolbit; - BYTE reserved; -} DCLOCK_POS; - + UINT8 *pos; + UINT16 mask; + UINT8 rolbit; + UINT8 reserved; +} DCPOS; typedef struct { - BYTE *dclock_fnt; - DCLOCK_POS *dclock_put; - void (*init)(void); -} DCLOCK_FNT; +const UINT8 *fnt; +const DCPOS *pos; + UINT8 frm[8]; + UINT8 now[8]; + UINT8 bak[8]; + UINT16 drawing; + UINT8 clk_x; + UINT8 _padding; + UINT8 dat[(DCLOCK_X * DCLOCK_Y / 8) + 4]; +} _DCLOCK; -extern RGB32 dclock_pal[4]; +typedef struct { + RGB32 pal32[4]; + RGB16 pal16[4]; + UINT32 pal8[4][16]; +} DCLOCKPAL; #ifdef __cplusplus extern "C" { #endif +extern _DCLOCK dclock; +extern DCLOCKPAL dclockpal; + void dclock_init(void); void dclock_init8(void); void dclock_init16(void); @@ -37,10 +44,10 @@ void dclock_reset(void); void dclock_callback(void); void dclock_redraw(void); BOOL dclock_disp(void); -void __fastcall dclock_cntdown(BYTE value); +void dclock_cntdown(BYTE value); void dclock_make(void); -void __fastcall dclock_out8(void *ptr, DWORD width); -void __fastcall dclock_out16(void *ptr, DWORD width); +void dclock_out8(void *ptr, UINT width); +void dclock_out16(void *ptr, UINT width); #ifdef __cplusplus }