.improved scaling when 16:9 correction is enabled

This commit is contained in:
ekeeke31 2012-02-12 21:15:09 +00:00
parent 38dcd29a66
commit 3dee74358e
3 changed files with 5 additions and 5 deletions

View File

@ -3256,8 +3256,8 @@ static void showcredits(void)
FONT_writeCenter("improved emulation code, fixes & extra features by Eke-Eke", 18, 0, 640, 516 - offset, (GXColor)WHITE);
FONT_writeCenter("original 1.3 version by Charles MacDonald", 18, 0, 640, 534 - offset, (GXColor)WHITE);
FONT_writeCenter("original Z80 core by Juergen Buchmueller", 18, 0, 640, 552 - offset, (GXColor)WHITE);
FONT_writeCenter("original 68k Musashi core by Karl Stenerud", 18, 0, 640, 570 - offset, (GXColor)WHITE);
FONT_writeCenter("original YM2612/YM2413 cores by Jarek Burczynski & Tatsuyuki Satoh", 18, 0, 640, 588 - offset, (GXColor)WHITE);
FONT_writeCenter("original 68k core (Musashi) by Karl Stenerud", 18, 0, 640, 570 - offset, (GXColor)WHITE);
FONT_writeCenter("original YM2612/2413 cores by Jarek Burczynski, Tatsuyuki Satoh", 18, 0, 640, 588 - offset, (GXColor)WHITE);
FONT_writeCenter("SN76489 core by Maxim", 18, 0, 640, 606 - offset, (GXColor)WHITE);
FONT_writeCenter("SVP core by Gravydas Ignotas (Notaz)", 18, 0, 640, 624 - offset, (GXColor)WHITE);
FONT_writeCenter("FIR Resampler & NTSC Video Filter by Shay Green (Blargg)", 18, 0, 640, 642 - offset, (GXColor)WHITE);

View File

@ -590,7 +590,7 @@ static void gxResetScaler(u32 width)
/* no filtering, disable GX horizontal scaling */
if (!config.bilinear && !config.ntsc)
{
if ((width * 2) <= 640)
if ((width <= 320) && (width <= xscale))
rmode->fbWidth = width * 2;
else if (width <= 640)
rmode->fbWidth = width;

View File

@ -61,8 +61,8 @@
*out++ = table[*in++]; \
*out++ = table[*in++]; \
out += 12; \
} \
while (--width);
} \
while (--width);
/* image texture */
typedef struct