PDA

View Full Version : doStretch without blur?



Wiering
08-04-2006, 01:48 PM
My game uses 320x200 pixels, but this is scaled up to any screen size using DXDRAW.Options.doStrecht. Here the pixels are interpollated and it looks very blurry. I'ld like to have clear pixels instead (in OpenGL this would be like using GL_NEAREST instead of GL_LINEAR).

Is there a way to do that in DelphiX?
(I'm using an old version of UnDelphiX from 2001).

Wiering
12-04-2006, 11:51 PM
I just found a solution: adding DDBLT_KEYSRC to the flags used with DXDraw.Primary.Blt and setting a transparent color (to a color that isn't used).

Now I get sharp pixels instead of blurry ones, but it does seem to be slower than without that flag. Also, I'm not sure if this works the same on all cards. Mine is an NVidia.

Traveler
13-04-2006, 08:09 AM
I have not used that option in the past mainly because the resolution used has always been the most common ones.

If you want to I could check your exe on 3 pc's ranging from radeon 7000, x700 and GForce 6800GT to see what it does.

Huehnerschaender
13-04-2006, 08:46 AM
I can offer a test on a X800 Pro Desktop and a Radeon 9000 Mobility Laptop.