Virtual Resolution: How it works?
BlitzMax Forums/BlitzMax Beginners Area/Virtual Resolution: How it works?
| ||
Hi, I guess this is a beginner's doubt. I'm a little confused about how Virtual Resolution works. This code works as expected: If I Go FullScreen... It doesn't! I just get the 800,600 area of blue rectangle... am I doing something wrong? |
| ||
This may be a D3D9 bug.... Have you tried the other drivers by using- SetGraphicsDriver D3D7Max2DDriver() or SetGraphicsDriver GLMax2DDriver() before the Graphics command. Bmax defaults to D3D9Max2DDriver if you are on Windows that has D3D9 installed. I have the same issue here which works ok with the other drivers, but with D3D9 I have sppears to be a fake 800x600 blue square in what looks like a fake 1024x768 resolution. |
| ||
The problem is in the Flip command in D3D9. If you set it to Flip False the problem is gone! |
| ||
Also in windowed mode, if you set 'Flip 1', the error shows up too. This is an internal bug in Max2D and I've post a report and a fix ( there may be several solutions to this problem? ) here :- http://www.blitzbasic.com/Community/posts.php?topic=96647 You can easily do a 'bypass fix' ( which internally corrects the internal errors ) by using:- SetViewport 0,0,1024,768 after your SetVirtualResolution. Last edited 2011 |
| ||
col, Thank you! So it's a bug after all...And you did find a decent "workaround" to this bug =) Thank you, I'll use the setviewport command then. I can live with your fix for now he he he... |