#145074 - Ruben - Sun Nov 11, 2007 5:17 am
I was wondering whether this is a correct (slow) method for plotting in mode 0:
Because I've tried that a bit and it seems to work fine when doing plotting like:
But it doesn't seem to work when working with image arrays. Any ideas?
PS:
In case you don't understand the bit-shifts...
Code: |
PLOT(X,Y,C,T) CBB[(Y<<1)+(X>>2)+(T<<4)] |= (C<<((X&3)<<2)) |
Because I've tried that a bit and it seems to work fine when doing plotting like:
Code: |
int main() {
PLOT(2, 1, 2, 3); PLOT(2, 2, 2, 3); } |
But it doesn't seem to work when working with image arrays. Any ideas?
PS:
In case you don't understand the bit-shifts...
Code: |
PLOT(X,Y,C,T) CBB[(Y*2)+(X/4)+(T*16)] |= (C<<((X%4)*4)) |