|
This thread is locked; no one can reply to it. |
1
2
|
draw_sprite and system bitmap subbitmap failure code and images |
Thomas Harte
Member #33
April 2000
|
Quote: with the power of AXL Don't forget the firepower of Billy! [My site] [Tetrominoes] |
Richard Phipps
Member #1,632
November 2001
|
Double power eh? |
Neil Walker
Member #210
April 2000
|
I created a fullscreen bitmap (video/memory/system) and did set_clip_rect(page1,50,50,250,300); I then did some blit, draw_sprite and masked_blit of both subbitmaps and normal bitmaps over the screen. The only thing to show was the stuff in the clipping rectangle. All was well. Hope that helps. Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
Evert
Member #794
November 2000
|
And if you remove teh clipping code from ddraw_draw_sprite()? |
Neil Walker
Member #210
April 2000
|
ok, I added a clipping region to my back buffer (as above) and then modified wdaccel.c to be:
And something quite strange happened. If sprite was a video/system bitmap, i.e. it follows the ddraw_masked_blit route (but no clipping code is now there) and the destination (bmp) was a memory bitmap, it honoured the clip that we set in our code for bmp. All well with the removal of the code then... However, if bmp is a system or video bitmap (i.e. we are drawing a system or video bitmap onto a video or system bitmap), then the clipping region is ignored for draw_sprite (masked_blit is still ok). So it appears to me that removing the clipping code should be fine, but something odd is going on in the video bitmap code, not related to draw_sprite? Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
Evert
Member #794
November 2000
|
Quote: What do you think of this patch? (untested) Looks ok to me. Did anyone test it? Quote: So it appears to me that removing the clipping code should be fine, but something odd is going on in the video bitmap code, not related to draw_sprite?
And if you leave the clipping code in? |
Neil Walker
Member #210
April 2000
|
Possibly it is there for that reason, but when I had a quick look at the masked_blit function it didn't do any clipping checks. But I guess thinking about it I might have been looking at the wrong function as there are a few different blitting functions for each one (e.g. original, ddraw_, etc). I'll check again tomorrow, unless someone else does it for me beforehand. Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
|
1
2
|