Ejemplo n.º 1
0
Archivo: ppu.cpp Proyecto: yueqiumao/fc
void PPU::test(int scaleline) {
    LCD* lcd = _lpNes->getLCD();
    LPWORD buffer = lcd->getBuffer();
    buffer = buffer+8;

    for (int i = 0; i < SCREEN_WIDTH; ++i)
    {
        int index = (scaleline>>3)*32 + i>>3;
        buffer[i] = COLOR_MAP[index&0x3f];
    }
}