I edited this topic to make a bit more sense...
This issue has been brought up before, but I just didn't understand the sample code given.
I have pBackBuffer containing a lot of FillRect's.
To give a scrolling effect, I would like to move the whole pBackBuffer to the left a certain amount of pixel's on the X coord.
I am currently using BltFast and setting the destX to -10:
GDBLTFASTFX bltfastfx;
pBackBuffer->BltFast(-10,0, &pBackBuffer, NULL,NULL,&bltfx);
It shifts the whole pBackBuffer to the left 10 pixels.
But it seems like it doesn't clear the buffer right before it moves it, so everything is "streaking" horizontally.
How can I shift the pBackBuffer by x,y...but let it "clean up" the screen before it moves everything, so the screen doesnt have remnants of the screen before it was moved?
If you can answer this, please supply some code I could use to do this, since I learn to code visually. Thanks in advance. :)
This issue has been brought up before, but I just didn't understand the sample code given.
I have pBackBuffer containing a lot of FillRect's.
To give a scrolling effect, I would like to move the whole pBackBuffer to the left a certain amount of pixel's on the X coord.
I am currently using BltFast and setting the destX to -10:
GDBLTFASTFX bltfastfx;
pBackBuffer->BltFast(-10,0, &pBackBuffer, NULL,NULL,&bltfx);
It shifts the whole pBackBuffer to the left 10 pixels.
But it seems like it doesn't clear the buffer right before it moves it, so everything is "streaking" horizontally.
How can I shift the pBackBuffer by x,y...but let it "clean up" the screen before it moves everything, so the screen doesnt have remnants of the screen before it was moved?
If you can answer this, please supply some code I could use to do this, since I learn to code visually. Thanks in advance. :)