Viewport bug when setting virtual graphics

Archives Forums/BlitzMax Bug Reports/Viewport bug when setting virtual graphics

Chroma(Posted 2010) [#1]
If either the virtual width or height is larger than the graphics width or height, the viewport isn't set correctly.

My computer is an AMD quad core 965
Video card is a Radeon 5770 w/1 Gig memory onboard
Monitor is a Viewsonic with native resolution of 1680x1050

Here's the problematic code:
Graphics 1680,1050,32
SetVirtualResolution 1920,1200
'SetViewport 0,0,1920,1200			'Uncomment this line to 'fix' the bug

SetClsColor 20,20,40

While Not KeyHit(KEY_ESCAPE)
Cls
Flip
Wend


Last edited 2010


Chroma(Posted 2010) [#2]
Also just tried it with the below and it does it here too.

Graphics 1024,768,32
SetVirtualResolution 1600,1200

Last edited 2010


Chroma(Posted 2010) [#3]
Bah sorry...had the wrong forum.


therevills(Posted 2011) [#4]
Bump!

I've just had this here:
http://www.blitzbasic.com/Community/posts.php?topic=96415#1115717


Thanks for the "fix" Chroma!