Move overclock-related variables to ppu instead
Just makes more sense since overclocking is ppu-based.
This commit is contained in:
@@ -52,15 +52,15 @@ int FCEU_InitVirtualVideo(void)
|
||||
{
|
||||
/* 256 bytes per scanline, * 240 scanline maximum, +8 for alignment, */
|
||||
if (!XBuf)
|
||||
XBuf = (uint8*)(FCEU_malloc(256 * (256 + FSettings.extrascanlines + 8)));
|
||||
XBuf = (uint8*)(FCEU_malloc(256 * (256 + ppu.extrascanlines + 8)));
|
||||
if (!XDBuf)
|
||||
XDBuf = (uint8*)(FCEU_malloc(256 * (256 + FSettings.extrascanlines + 8)));
|
||||
XDBuf = (uint8*)(FCEU_malloc(256 * (256 + ppu.extrascanlines + 8)));
|
||||
|
||||
if (!XBuf || !XDBuf)
|
||||
return 0;
|
||||
|
||||
memset(XBuf, 128, 256 * (256 + FSettings.extrascanlines + 8));
|
||||
memset(XDBuf, 128, 256 * (256 + FSettings.extrascanlines + 8));
|
||||
memset(XBuf, 128, 256 * (256 + ppu.extrascanlines + 8));
|
||||
memset(XDBuf, 128, 256 * (256 + ppu.extrascanlines + 8));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user