Skip to main content
GameDev.net gamedev.net
🔒 Locked

please help!! problem with directdraw

Started by Ana Apr 11, 2001 at 7:06 AM 1 replies 400+ views
Original Post
Ana
Ana
Hi, greetings from Spain, i have a very big problem :-(, i load a bitmap (24bits) (a men walking frames, into rectangles) on a surface and then i blit with colorkey and scaling, i mean i blt from a rectangle to other smaller, the problem is that some frames have lines at the borders left and right, they are the lines of the rectangles of the bitmap but they shouldn`t appear, in fact if i dont do scaling, they don´t appear, and with this problem is that if i put a blue color for expample as transparent color when blit, its no done correctly, the man is drawn with a blue border, i think this may be because of i have resolution of 32 bits and my surfaces are 24 bit graphics.. my card doesnt has 24 bit resolution, so i put 32bit with setdisplay(640,480,32,0,0).. please help me , i load the bitmap with de ddutil function ddloadbitmap, what i am doing worng?? Thank you very much and sorry about my english
mittens
mittens
Hmmm... Unique problem. Make sure that you source and destination rectangle are 1 pixel smaller than what they are supposed to be. Next, for the color keying, make sure that you add the right flags in places (check the SDK for more info). And if that still doesn''t work, it might be your card. But if the screen res is 32 bit, a 24bit bitmap should have no problem. Hope that helps.

------------------------------
ShiningKnightDX
NovaStorm Games
Project: Neo Phoenix
Ana
Ana
Thank you very much for your help, i think i´ve discovered the problem, i think that when directdraw reduce the rectangle the pixels that are near combine their colors, that is why if i put a transparent color blue there appear a blue border and also appear a red line on the right, the line of the rectangle that surrounds the frame, i think that it? what do you think and thank you very much

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.