Hi everyone,
I need to know what function should be called from KOS to enable VGA mode if detected. Right now my engine runs at 640x480, so I'll need a flag in my set resolution code to go up to 800x600...not sure if anything KOS-specific needs to be defined.
KOS function to upscale in PVR?
- Corbin
- DC Developer
- Posts: 121
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Fri Dec 14, 2007 1:56 am
- Location: California
- Has thanked: 0
- Been thanked: 0
- BlueCrab
- The Crabby Overlord
- Posts: 5658
- Joined: Mon May 27, 2002 11:31 am
- Location: Sailing the Skies of Arcadia
- Has thanked: 9 times
- Been thanked: 69 times
- Contact:
Re: KOS function to upscale in PVR?
First off 800x608 (there is no 800x600 mode) does not work in KOS as it stands, so there really isn't a way to do what you're asking at the moment.
To get to the meat of your question though, you'd have to use a combination of vid_check_cable() and vid_set_mode() or vid_set_mode_ex() to do what you've asked about (links are to the KOS documentation, which is available online).
To get to the meat of your question though, you'd have to use a combination of vid_check_cable() and vid_set_mode() or vid_set_mode_ex() to do what you've asked about (links are to the KOS documentation, which is available online).
- PH3NOM
- DC Developer
- Posts: 576
- Joined: Fri Jun 18, 2010 9:29 pm
- Has thanked: 0
- Been thanked: 5 times
Re: KOS function to upscale in PVR?
Your first post seems to imply that you assume VGA mode is 800x600(or 800x608 ), but that is not the case.
VGA is 640x480p, i.e. progressive-scan; the standard video mode is 640x480i, interlaced.
VGA mode essentially gives us 2x the vertical resolution per-frame
https://en.wikipedia.org/wiki/Progressive_scan
VGA is 640x480p, i.e. progressive-scan; the standard video mode is 640x480i, interlaced.
VGA mode essentially gives us 2x the vertical resolution per-frame
https://en.wikipedia.org/wiki/Progressive_scan