DirectX 9 Bug

Archives Forums/BlitzMax Bug Reports/DirectX 9 Bug

TaskMaster(Posted 2009) [#1]
I do not know whether this is a MaxGUI bug or just a BlitzMax bug as a whole.

But, I make a window with a canvas on it and draw an image. When I resize the window I set the ViewPort and the VirtualResolution to the size of the canvas, so my graphic stays the same.

This works in OpenGL and DX7, but in DX9 it seems that the virtual resolution get off just slightly and make the image a little blurry.

Here is some sample code. Load your own image in place of pic.jpg.

Resize the window by dragging its edge. The graphic should not change.

But if you comment out the OGL driver and enable the DX9 driver, you will see the image get blurry when you resize the window. You can also try the DX7 driver, which also works.




degac(Posted 2009) [#2]
'Bug' confirmed, but in my case the image is not 'blurred' but as here



The original image is the BlitzMax logo


jsp(Posted 2009) [#3]
I encounter the same problem and with the standard drawing commands (DrawLine, DrawRect...) it's much worse than with a picture!
While DX7 looks ok for a first test, OGL seems to have also a problem with a virtual resolution different than 1:1 all linewidths look like set to 1.