FlipBlit bug?
Displaying 1-3 of 3 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
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

RageCage

I'm having trouble understanding you... why do assume for some reason that by flipping an image that it would change the position of the image? That wouldent make much since to me

Posted on 2004-08-17 06:26:52

Omni

No, no....


FlipBlit an image so that it is partially offscreen. FlipBlit will only actually flip the pixel data that isn't clipped, instead of flipping the whole image.

Posted on 2004-08-17 15:44:52


Displaying 1-3 of 3 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.