Fixed HQ3x and 16 bit under SDL.

This commit is contained in:
Nach 2007-11-20 15:36:20 +00:00
parent 20cb5e9d0f
commit 874d37653a
1 changed files with 8 additions and 15 deletions

View File

@ -2697,21 +2697,14 @@ void systemDrawScreen()
}
if(filterFunction) {
if(systemColorDepth == 16) {
filterFunction(pix+destWidth+4,destWidth+4, delta,
(u8*)surface->pixels,surface->pitch,
srcWidth,
srcHeight);
} else {
unsigned int destw = destWidth*(filter_enlarge == 2 ? 2 : 1)+4;
filterFunction(pix+destw,
destw,
delta,
(u8*)surface->pixels,
surface->pitch,
srcWidth,
srcHeight);
}
unsigned int destw = destWidth*((systemColorDepth == 16) ? 2 : 4) / filter_enlarge + 4;
filterFunction(pix+destw,
destw,
delta,
(u8*)surface->pixels,
surface->pitch,
srcWidth,
srcHeight);
} else {
int destPitch = surface->pitch;
u8 *src = pix;