I programmed in gfabasic 3.6TT a little earlier today, and something very annoying happened.
I used the XBIOS(5)-function to go from medium to low resolution. On my first tests I let the program tell me if it did it right by printing out a string. So far so good. It looked right, I was satisfied with that, and I added som more code according to my plans... I wanted to draw filled boxes.
When I started to draw the boxes I realized that my Mega STE hadn't switched to low resolution completely. The XBIOS(4) call told me that we were in Low Resolution (0), and my PRINT-lines looked like low resolution, BUT when I draw a box 0,0,319,199 it just filled half the screen! Further tests showed that the resolution was 639x199.
Why?! I got distracted and never tried to boot the computer without NVDI, so therefore I ask here before I get back to my problem tonight: Could NVDI be the problem here?
Resolution Headaches
Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team
-
- Moderator
- Posts: 5254
- Joined: Wed Oct 23, 2002 4:36 pm
- Location: Friedrichshafen, Germany
- Contact:
Re: Resolution Headaches
The VDI is not properly reinitialized when you change the resolution with XBIOS. I can't tell about NVDI.
The workaround is to use Linea or use selfmade functions - or the proper solution is to write resolution independent VDI conform code.
The workaround is to use Linea or use selfmade functions - or the proper solution is to write resolution independent VDI conform code.
Simon Sunnyboy/Paradize - http://paradize.atari.org/
Stay cool, stay Atari!
1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee
Stay cool, stay Atari!
1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee