Omni
|
Okay, I've got one picture, right? It's a single line buffer, of dimensions x, y: 640x1.
So it's a long line of pixels.
I'm running in resolution 320x240.
Anyway. The first 80 or so pixels of this line contain data.
Thus, if I just TBlit() the line, I will see a line 80 pixels long.
But if I FlipBlit the line, naturally this means the first pixel data would suddenly become the last 80 pixels of pixel data. Thus, since my horizontal resolution is only 320, the data would be offscreen, and I won't see it, right? Wrong.
Strangely the last 80 pixels of the data are in line with the right side of the screen. It's like FlipBlit flipped it, and then right-justified it.
Naturally this will not do for what I'm doing (flipping offscreen buffers).
I assume this is because FlipBlit actually just plain Blits() the data to the image buffer, and then reverses the data within the buffer (thus whatever was clipped is lost and not flipped).
What I need it to do is truly blit the pixels in reverse order.
Is this current behavior (I think I've analyzed it correctly) merely a design choice? I'd like my FlipBlit working correctly.
Posted on 2004-08-17 03:49:59
|