Fixed HQ3x and 16 bit under SDL.
This commit is contained in:
parent
20cb5e9d0f
commit
874d37653a
|
@ -2697,21 +2697,14 @@ void systemDrawScreen()
|
||||||
}
|
}
|
||||||
|
|
||||||
if(filterFunction) {
|
if(filterFunction) {
|
||||||
if(systemColorDepth == 16) {
|
unsigned int destw = destWidth*((systemColorDepth == 16) ? 2 : 4) / filter_enlarge + 4;
|
||||||
filterFunction(pix+destWidth+4,destWidth+4, delta,
|
filterFunction(pix+destw,
|
||||||
(u8*)surface->pixels,surface->pitch,
|
destw,
|
||||||
srcWidth,
|
delta,
|
||||||
srcHeight);
|
(u8*)surface->pixels,
|
||||||
} else {
|
surface->pitch,
|
||||||
unsigned int destw = destWidth*(filter_enlarge == 2 ? 2 : 1)+4;
|
srcWidth,
|
||||||
filterFunction(pix+destw,
|
srcHeight);
|
||||||
destw,
|
|
||||||
delta,
|
|
||||||
(u8*)surface->pixels,
|
|
||||||
surface->pitch,
|
|
||||||
srcWidth,
|
|
||||||
srcHeight);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
int destPitch = surface->pitch;
|
int destPitch = surface->pitch;
|
||||||
u8 *src = pix;
|
u8 *src = pix;
|
||||||
|
|
Loading…
Reference in New Issue