240 DECLARE_POSTFIX_INCREMENT(FontSize); |
240 DECLARE_POSTFIX_INCREMENT(FontSize); |
241 |
241 |
242 void RedrawScreenRect(int left, int top, int right, int bottom); |
242 void RedrawScreenRect(int left, int top, int right, int bottom); |
243 void GfxScroll(int left, int top, int width, int height, int xo, int yo); |
243 void GfxScroll(int left, int top, int width, int height, int xo, int yo); |
244 |
244 |
|
245 /** |
|
246 * Used to only draw a part of the sprite. |
|
247 * Draw the subsprite in the rect (sprite_x_offset + left, sprite_y_offset + top) to (sprite_x_offset + right, sprite_y_offset + bottom). |
|
248 * Both corners are included in the drawing area. |
|
249 */ |
|
250 struct SubSprite { |
|
251 int left, top, right, bottom; |
|
252 }; |
|
253 |
|
254 void DrawSprite(SpriteID img, SpriteID pal, int x, int y, const SubSprite *sub = NULL); |
245 |
255 |
246 /* XXX doesn't really belong here, but the only |
256 /* XXX doesn't really belong here, but the only |
247 * consumers always use it in conjunction with DoDrawString() */ |
257 * consumers always use it in conjunction with DoDrawString() */ |
248 #define UPARROW "\xEE\x8A\x80" |
258 #define UPARROW "\xEE\x8A\x80" |
249 #define DOWNARROW "\xEE\x8A\xAA" |
259 #define DOWNARROW "\xEE\x8A\xAA" |