mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
CHEWY: Remove unused functions
This commit is contained in:
parent
8e2ea2c8d5
commit
1bc86dc799
@ -107,26 +107,10 @@ void mem2mcga(const byte *ptr) {
|
||||
g_screen->markAllDirty();
|
||||
}
|
||||
|
||||
void mcga2mem(byte *ptr) {
|
||||
const byte *srcP = SCREEN;
|
||||
*((uint16 *)ptr) = SCREEN_WIDTH;
|
||||
*((uint16 *)(ptr + 2)) = SCREEN_HEIGHT;
|
||||
|
||||
Common::copy(srcP, srcP + (SCREEN_WIDTH * SCREEN_HEIGHT), ptr + 4);
|
||||
}
|
||||
|
||||
void mem2mem(const byte *ptr1, byte *ptr2) {
|
||||
Common::copy(ptr1, ptr1 + (SCREEN_WIDTH * SCREEN_HEIGHT), ptr2);
|
||||
}
|
||||
|
||||
void mem2mem_masked(const byte *ptr1, byte *ptr2, int16 maske) {
|
||||
for (int i = 0; i < SCREEN_WIDTH * SCREEN_HEIGHT; ++i, ++ptr1, ++ptr2) {
|
||||
byte pixel = *ptr1;
|
||||
if (pixel != maske)
|
||||
*ptr2 = pixel;
|
||||
}
|
||||
}
|
||||
|
||||
void map_spr_2screen(const byte *sptr, int16 x, int16 y) {
|
||||
const int width = *((const int16 *)sptr);
|
||||
sptr += 4 + y * width + x;
|
||||
|
@ -44,9 +44,7 @@ uint8 getpix(int16 x, int16 y);
|
||||
void line_mcga(int16 x1, int16 y1, int16 x2, int16 y2, int16 farbe);
|
||||
|
||||
void mem2mcga(const byte *ptr);
|
||||
void mcga2mem(byte *ptr);
|
||||
void mem2mem(const byte *ptr1, byte *ptr2);
|
||||
void mem2mem_masked(const byte *ptr1, byte *ptr2, int16 maske);
|
||||
|
||||
void map_spr_2screen(const byte *sptr, int16 x, int16 y);
|
||||
void spr_save_mcga(byte *sptr, int16 x, int16 y, int16 width,
|
||||
|
@ -258,46 +258,6 @@ void McgaGraphics::pop_box(int16 x, int16 y, int16 x1, int16 y1, int16 col1, int
|
||||
linie(x, y, x, y1 + 1, col1);
|
||||
}
|
||||
|
||||
void McgaGraphics::kreis(int16 x, int16 y, int16 r, int16 farbe) {
|
||||
int16 b = 0, alt = 0;
|
||||
for (int16 w = 0; w <= 91; w++) {
|
||||
int16 a = (int16)(_sines[w] * ((float)r * 0.85));
|
||||
if ((a - alt) > 1) {
|
||||
int16 diff = a - alt;
|
||||
for (int16 i = 0; i <= diff; i++) {
|
||||
setpixel_mcga(x - b, (y - (alt + i)), farbe);
|
||||
setpixel_mcga(x + b, (y - (alt + i)), farbe);
|
||||
setpixel_mcga(x - b, (y + (alt + i)), farbe);
|
||||
setpixel_mcga(x + b, (y + (alt + i)), farbe);
|
||||
}
|
||||
}
|
||||
b = (int16)(_cosines[w] * (float)r);
|
||||
setpixel_mcga(x - b, y - a, farbe);
|
||||
setpixel_mcga(x + b, y - a, farbe);
|
||||
setpixel_mcga(x - b, y + a, farbe);
|
||||
setpixel_mcga(x + b, y + a, farbe);
|
||||
alt = a;
|
||||
}
|
||||
}
|
||||
|
||||
void McgaGraphics::fkreis(int16 x, int16 y, int16 r, int16 farbe) {
|
||||
int16 b = 0, alt = 0, i = 0, diff;
|
||||
for (int16 w = 0; w <= 90; w++) {
|
||||
int16 a = (int16)(_sines[w] * ((float)r * 0.85));
|
||||
if ((a - alt) > 1) {
|
||||
diff = a - alt;
|
||||
for (i = 0; i < diff; i++) {
|
||||
line_mcga(x - b, (y - (alt + i)), x + b, (y - (alt + i)), farbe);
|
||||
line_mcga(x - b, (y + (alt + i)), x + b, (y + (alt + i)), farbe);
|
||||
}
|
||||
}
|
||||
b = (int16)(_cosines[w] * ((float)r));
|
||||
line_mcga(x - b, (y - (alt + i)), x + b, (y - (alt + i)), farbe);
|
||||
line_mcga(x - b, (y + (alt + i)), x + b, (y + (alt + i)), farbe);
|
||||
alt = a;
|
||||
}
|
||||
}
|
||||
|
||||
void McgaGraphics::back2screen(byte *ptr) {
|
||||
mem2mcga(ptr);
|
||||
}
|
||||
@ -306,14 +266,6 @@ void McgaGraphics::back2back(byte *ptr1, byte *ptr2) {
|
||||
mem2mem(ptr1, ptr2);
|
||||
}
|
||||
|
||||
void McgaGraphics::back2back_maskiert(byte *ptr1, byte *ptr2, int16 maske) {
|
||||
mem2mem_masked(ptr1, ptr2, maske);
|
||||
}
|
||||
|
||||
void McgaGraphics::screen2back(byte *ptr) {
|
||||
mcga2mem(ptr);
|
||||
}
|
||||
|
||||
void McgaGraphics::sprite_save(byte *sptr, int16 x, int16 y, int16 breite, int16 hoehe, int16 scrwidth) {
|
||||
if (breite < 4)
|
||||
breite = 4;
|
||||
|
@ -63,13 +63,9 @@ public:
|
||||
void box_fill(int16 x1, int16 y1, int16 x2, int16 y2, int16 farbe);
|
||||
void pop_box(int16 x, int16 y, int16 x1, int16 y1,
|
||||
int16 col1, int16 col2, int16 back_col);
|
||||
void kreis(int16 x, int16 y, int16 r, int16 farbe);
|
||||
void fkreis(int16 x, int16 y, int16 r, int16 farbe);
|
||||
|
||||
void back2screen(byte *ptr);
|
||||
void screen2back(byte *ptr);
|
||||
void back2back(byte *ptr1, byte *ptr2);
|
||||
void back2back_maskiert(byte *ptr1, byte *ptr2, int16 maske);
|
||||
|
||||
void sprite_save(byte *sptr, int16 x, int16 y, int16 breite,
|
||||
int16 hoehe, int16 scrwidth);
|
||||
|
Loading…
Reference in New Issue
Block a user