Fix signature for draw_sprite_scaled

This commit is contained in:
Kevin Lange 2012-11-16 18:37:12 -08:00
parent 9930624043
commit 94dc368904
2 changed files with 3 additions and 2 deletions

View File

@ -515,7 +515,7 @@ uint32_t getBilinearFilteredPixelColor(sprite_t * tex, double u, double v) {
return rgb(r_RED,r_GRE,r_BLU) & (0xFFFFFF + (int)r_ALP * 0x1000000);
}
void draw_sprite_scaled(gfx_context_t * ctx, sprite_t * sprite, uint16_t x, uint16_t y, uint16_t width, uint16_t height) {
void draw_sprite_scaled(gfx_context_t * ctx, sprite_t * sprite, int32_t x, int32_t y, uint16_t width, uint16_t height) {
int32_t _left = max(x, 0);
int32_t _top = max(y, 0);
int32_t _right = min(x + width, ctx->width - 1);

View File

@ -72,7 +72,8 @@ void draw_line(gfx_context_t * ctx, int32_t x0, int32_t x1, int32_t y0, int32_t
void draw_line_thick(gfx_context_t * ctx, int32_t x0, int32_t x1, int32_t y0, int32_t y1, uint32_t color, char thickness);
void draw_fill(gfx_context_t * ctx, uint32_t color);
void draw_sprite_scaled(gfx_context_t * ctx, sprite_t * sprite, uint16_t x, uint16_t y, uint16_t width, uint16_t height);
void draw_sprite_scaled(gfx_context_t * ctx, sprite_t * sprite, int32_t x, int32_t y, uint16_t width, uint16_t height);
void context_to_png(FILE * file, gfx_context_t * ctx);
#endif