Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - After PgSetVideoMode() all other Photon calls return an errors.: (5 Items)
   
After PgSetVideoMode() all other Photon calls return an errors.  
While writing tests for the different blittings, I've found that after PgSetVideoMode() function all other Photon 
functions are failing.

In the attachment the original gf-ph-3d demo, where I've added a mode switch in the abmain.c before the main loop. It 
switches to the current active video mode (resolution, bit depth and refresh rate are the same).

Why this happen ?
Attachment: Text gf-ph-3d.tar.gz 10.9 KB
RE: After PgSetVideoMode() all other Photon calls return an errors.  
IIRC, on all mode switches, the surfaces get torn down ... because the
format has possibly changed.  Take a look at services/graphics/main.c

-----Original Message-----
From: Mike Gorchak [mailto:community-noreply@qnx.com] 
Sent: Tuesday, October 13, 2009 4:09 PM
To: photon-graphics
Subject: After PgSetVideoMode() all other Photon calls return an errors.

While writing tests for the different blittings, I've found that after
PgSetVideoMode() function all other Photon functions are failing.

In the attachment the original gf-ph-3d demo, where I've added a mode
switch in the abmain.c before the main loop. It switches to the current
active video mode (resolution, bit depth and refresh rate are the same).

Why this happen ?



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post39824
Re: RE: After PgSetVideoMode() all other Photon calls return an errors.  
I've put a modeswitch call to the beginning of this testcase, where surfaces still not created. After modeswitch, for 
example, PgGetVideoModeList() function returns -1 on each call.
RE: RE: After PgSetVideoMode() all other Photon calls return an errors.  
what version are you using?

-----Original Message-----
From: Mike Gorchak [mailto:community-noreply@qnx.com] 
Sent: Tuesday, October 13, 2009 4:17 PM
To: photon-graphics
Subject: Re: RE: After PgSetVideoMode() all other Photon calls return an
errors.

I've put a modeswitch call to the beginning of this testcase, where
surfaces still not created. After modeswitch, for example,
PgGetVideoModeList() function returns -1 on each call.




_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post39826
Re: RE: RE: After PgSetVideoMode() all other Photon calls return an errors.  
6.4.1.