AGS: More properly fix paletted fading
This commit is contained in:
parent
14786606c7
commit
9585fd17a8
1 changed files with 4 additions and 4 deletions
|
@ -187,14 +187,14 @@ void get_color(int idx, RGB *p) {
|
|||
*p = _G(current_palette)[idx];
|
||||
}
|
||||
|
||||
void get_palette(PALETTE p) {
|
||||
*p = *_G(current_palette);
|
||||
}
|
||||
|
||||
void get_palette_range(PALETTE p, int from, int to) {
|
||||
Common::copy(&_G(current_palette)[from], &_G(current_palette)[to + 1], &p[from]);
|
||||
}
|
||||
|
||||
void get_palette(PALETTE p) {
|
||||
get_palette_range(p, 0, PAL_SIZE - 1);
|
||||
}
|
||||
|
||||
void fade_interpolate(AL_CONST PALETTE source, AL_CONST PALETTE dest, PALETTE output, int pos, int from, int to) {
|
||||
assert(pos >= 0 && pos <= 64);
|
||||
assert(from >= 0 && from < PAL_SIZE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue