PgGetVideoModeList() function

Hi !

Why PgGetVideoModeList doesn’t list 320x200, 512x384, etc. low-res
fullscreen modes. For some tasks 640x480 (minimum video resolution in Photon
drivers) is large, but 512x384 or 320x200(240) are normal.

Is it problem of video drivers for Photon or artificially reduced
functionality ?


Thanks !

Photon doesn’t know anything about video modes, the drivers do
all the deciding on what can be supported, the iPaq for example
is a 240x320 (or maybe it’s 200x320…don’t remember exactly) display
and Photon runs just fine (since the iPaq video driver handles
that resolution).

The driver guys will have to comment as to why the low resolutions are not
normally supported by the average photon driver.

Dave Rempel


Mike Gorchak <mike@malva.com.ua> wrote:

Hi !

Why PgGetVideoModeList doesn’t list 320x200, 512x384, etc. low-res
fullscreen modes. For some tasks 640x480 (minimum video resolution in Photon
drivers) is large, but 512x384 or 320x200(240) are normal.

Is it problem of video drivers for Photon or artificially reduced
functionality ?


Thanks !

Mike Gorchak <mike@malva.com.ua> wrote:

Hi !

Why PgGetVideoModeList doesn’t list 320x200, 512x384, etc. low-res
fullscreen modes. For some tasks 640x480 (minimum video resolution in Photon
drivers) is large, but 512x384 or 320x200(240) are normal.

Is it problem of video drivers for Photon or artificially reduced
functionality ?

You can run at 320x200x8 right now if you want, but you need to edit
/etc/system/config/graphics-modes. Add a line line this:
io-graphics -dldevg-vga.so -g320x200x8;#320,200,8,100,0,vga - Mode 13
somewhere in the middle/end of the file, then it should show up
in the list when you use “Graphics config” dialog.

Q. Why do we not add 320x200 to the list automatically?
A. It’s impossible to use the “Graphics Config” dialog at this
resolution. It does not make sense to run at the resolution
when using desktop type apps, although it does make sense
when playing fullscreen games like doom.

Q. Why isn’t 320x200x8 returned in the list when you call
PgGetVideoModeList?
A. Right now, only the graphics driver which is currently running
is queried for modes. Hence if you are running the rage driver,
you only get modes that the rage driver supports.
Some work is required on our part to allow querying all drivers,
and to allow PgSetVideoMode to unload the current driver
dll and switch to a different one (e.g. unload devg-rage.so
and load devg-vga.so).

Q. When will it be available?
A. This is a forum is for technical discussions :wink:

Dave