MCPcopy Create free account
hub / github.com/TASEmulators/fceux / PaletteAdjustPixel

Function PaletteAdjustPixel

src/ppu.cpp:2096–2103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2094} bgdata;
2095
2096static inline int PaletteAdjustPixel(int pixel) {
2097 if ((PPU[1] >> 5) == 0x7)
2098 return (pixel & 0x3f) | 0xc0;
2099 else if (PPU[1] & 0xE0)
2100 return pixel | 0x40;
2101 else
2102 return (pixel & 0x3F) | 0x80;
2103}
2104
2105int framectr = 0;
2106int FCEUX_PPU_Loop(int skip) {

Callers 1

FCEUX_PPU_LoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected