Hey, I''ve been playing around in mode 3, and in the process I''ve been trying to manually back buffer things. Now, I''ve encountered a bit of a problem. It seems that the data in my back buffer array is changed as soon as I put it in. If I do this:
for (x = 0; x < 240; x++){
for (y = 0; y < 160; y++){
int place = x+y*240;
videoBuffer[place] = 0xFFFF;
}
}
Then the screen, as expected, draws completely white. No problem. Then I add an array "int backBuffer[38400];", and do this:
for (x = 0; x < 240; x++){
for (y = 0; y < 160; y++){
int place = x+y*240;
backBuffer[place] = 0xFFFF;
videoBuffer[place] = backBuffer[place];
}
}
Then the screen is filled with, what would seem to me anyway, pretty random garbage. Is it just me, or is the data in backBuffer getting corrupted somewhere in the process of those two lines of code? If the data is corrupted that instantaneously, there''s no way I can use it as I intend... What''s going on here?
-Arek the Absolute
-Arek the Absolute"The full quartet is pirates, ninjas, zombies, and robots. Create a game which involves all four, and you risk being blinded by the sheer level of coolness involved." - Superpig