OpenQNX :: The QNX Community Portal

Aug 21, 2008 - 06:20 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 43 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Simon Ouellette
Post subject: screenshot on dualhead setup  PostPosted: Sep 15, 2007 - 06:11 PM
Guest





Hi,

I'm running QNX 6.3 SP3 with a matrox dual-head, and I want to
programmatically take screenshots of either one of my two screens (left
or right screen, depending on circumstances). However, I'm only able to
take a screenshot of the left screen on one machine, and on another test
machine the only screenshot we could take was of the right screen...

I tried using a 1280 offset when I'm setting the capture area rectangle
in my code, and still I was only getting the left screen. I tried
PtSetTargetDevice() with the second region ID in my index of devices,
and still I was getting the left screen. I am using the function
PgReadScreen().

I noticed also that the photon snapshot program has the exact same
problem. No matter from which screen I run the snapshot program, it
captures only left the screen. (and on the other dual-head machine we
tried it on, it captured only the right screen...)

Any help would be appreciated.

Simon Ouellette
 
   
Reply with quote Back to top
maschoen
Post subject: RE: screenshot on dualhead setup  PostPosted: Sep 15, 2007 - 10:24 PM
QNX Master


Joined: Jun 25, 2003
Posts: 1058

This is mere guesswork here.
The way you get dual monitors to work, is by inserting a second region, owned by a graphics driver.
I don't know how snapshot works, but I imagine in some way it must be talking with the graphics driver.
So the problem is finding out where the taking of a screen shot involves specifying the graphics driver.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
Simon Ouellette
Post subject: Re: screenshot on dualhead setup  PostPosted: Sep 17, 2007 - 06:54 PM
Guest





PdSetTargetDevice() does that. When I list my draw devices using
PdGetDevices(), I get 2 devices in the list. I tried setting both
devices as my target device, with and without the 1280 X offset, and I
still only get a screenshot of the left screen...

Simon

maschoen wrote:
Quote:
This is mere guesswork here.
The way you get dual monitors to work, is by inserting a second
region, owned by a graphics driver.
I don't know how snapshot works, but I imagine in some way it must be
talking with the graphics driver.
So the problem is finding out where the taking of a screen shot
involves specifying the graphics driver.
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.