51 void GfxDrawLine(int left, int top, int right, int bottom, int color); |
51 void GfxDrawLine(int left, int top, int right, int bottom, int color); |
52 void DrawFrameRect(int left, int top, int right, int bottom, int color, int flags); |
52 void DrawFrameRect(int left, int top, int right, int bottom, int color, int flags); |
53 uint16 GetDrawStringPlayerColor(byte player); |
53 uint16 GetDrawStringPlayerColor(byte player); |
54 |
54 |
55 int GetStringWidth(const byte *str); |
55 int GetStringWidth(const byte *str); |
56 void LoadStringWidthTable(); |
56 void LoadStringWidthTable(void); |
57 void DrawStringMultiCenter(int x, int y, uint16 str, int maxw); |
57 void DrawStringMultiCenter(int x, int y, uint16 str, int maxw); |
58 void DrawStringMultiLine(int x, int y, uint16 str, int maxw); |
58 void DrawStringMultiLine(int x, int y, uint16 str, int maxw); |
59 void DrawDirtyBlocks(); |
59 void DrawDirtyBlocks(void); |
60 void SetDirtyBlocks(int left, int top, int right, int bottom); |
60 void SetDirtyBlocks(int left, int top, int right, int bottom); |
61 void MarkWholeScreenDirty(); |
61 void MarkWholeScreenDirty(void); |
62 |
62 |
63 void GfxInitPalettes(); |
63 void GfxInitPalettes(void); |
64 |
64 |
65 bool FillDrawPixelInfo(DrawPixelInfo *n, DrawPixelInfo *o, int left, int top, int width, int height); |
65 bool FillDrawPixelInfo(DrawPixelInfo *n, DrawPixelInfo *o, int left, int top, int width, int height); |
66 |
66 |
67 /* window.c */ |
67 /* window.c */ |
68 void DrawOverlappedWindowForAll(int left, int top, int right, int bottom); |
68 void DrawOverlappedWindowForAll(int left, int top, int right, int bottom); |
69 |
69 |
70 /* spritecache.c */ |
70 /* spritecache.c */ |
71 byte *GetSpritePtr(uint sprite); |
71 byte *GetSpritePtr(uint sprite); |
72 void GfxInitSpriteMem(byte *ptr, uint32 size); |
72 void GfxInitSpriteMem(byte *ptr, uint32 size); |
73 void GfxLoadSprites(); |
73 void GfxLoadSprites(void); |
74 |
74 |
75 void SetMouseCursor(uint cursor); |
75 void SetMouseCursor(uint cursor); |
76 void SetAnimatedMouseCursor(const uint16 *table); |
76 void SetAnimatedMouseCursor(const uint16 *table); |
77 void CursorTick(); |
77 void CursorTick(void); |
78 void DrawMouseCursor(); |
78 void DrawMouseCursor(void); |
79 void ScreenSizeChanged(); |
79 void ScreenSizeChanged(void); |
80 void UndrawMouseCursor(); |
80 void UndrawMouseCursor(void); |
81 bool ChangeResInGame(int w, int h); |
81 bool ChangeResInGame(int w, int h); |
82 void ToggleFullScreen(const bool full_screen); |
82 void ToggleFullScreen(const bool full_screen); |
83 |
83 |
84 typedef struct { |
84 typedef struct { |
85 int xoffs, yoffs; |
85 int xoffs, yoffs; |