mirror of https://github.com/OpenTTD/OpenTTD
(svn r6303) -Codechange: Remove dead code
parent
2890ed33b8
commit
1d1a4839c3
6
gfx.c
6
gfx.c
|
@ -656,12 +656,10 @@ void DrawSprite(uint32 img, int x, int y)
|
||||||
typedef struct BlitterParams {
|
typedef struct BlitterParams {
|
||||||
int start_x, start_y;
|
int start_x, start_y;
|
||||||
const byte *sprite;
|
const byte *sprite;
|
||||||
const byte *sprite_org;
|
|
||||||
Pixel *dst;
|
Pixel *dst;
|
||||||
int mode;
|
int mode;
|
||||||
int width, height;
|
int width, height;
|
||||||
int width_org;
|
int width_org;
|
||||||
int height_org;
|
|
||||||
int pitch;
|
int pitch;
|
||||||
} BlitterParams;
|
} BlitterParams;
|
||||||
|
|
||||||
|
@ -1359,8 +1357,8 @@ static void GfxMainBlitter(const Sprite *sprite, int x, int y, int mode)
|
||||||
x += sprite->x_offs;
|
x += sprite->x_offs;
|
||||||
y += sprite->y_offs;
|
y += sprite->y_offs;
|
||||||
bp.width_org = bp.width = sprite->width;
|
bp.width_org = bp.width = sprite->width;
|
||||||
bp.height_org = bp.height = sprite->height;
|
bp.height = sprite->height;
|
||||||
bp.sprite_org = bp.sprite = sprite->data;
|
bp.sprite = sprite->data;
|
||||||
bp.dst = dpi->dst_ptr;
|
bp.dst = dpi->dst_ptr;
|
||||||
bp.mode = mode;
|
bp.mode = mode;
|
||||||
bp.pitch = dpi->pitch;
|
bp.pitch = dpi->pitch;
|
||||||
|
|
Loading…
Reference in New Issue