All pastes #63129 Raw Edit

Anonymous

public text v1 · immutable
#63129 ·published 2006-06-08 04:08 UTC
rendered paste body
static int EmulateScanBG3(unsigned int scan,unsigned short *sdata)
{
        // BG_GFX is in the form:
        // ABBBBBGGGGGRRRRR

        // Works (sort of):
        for(int i = 0; i < 320; i++) {
                BG_GFX[(512*scan)+i]=sdata[i];
        }

        // Doesn't:
        dmaCopy(sdata,(void*)(BG_GFX[512*scan]),320*2);

        return 0;
}