Hi all, I have a question about setting screen modes - and exactly how a driver is expected to handle this in a multiple screen system.
As far as I can tell, setting a surface on the primary layer should trigger a screen mode change ( the system drivers (eg. fb,sdl) have entries for primarySetRegion() and the implementations for these appear to make mode changes. ) >From the users point of view there is DSCID_PRIMARY which can be used to configure the primary layer. I believe from the cores point of view this is always the first layer in the system. In my system, I have a "N screen x M layer" system and *all* layer handling is done by the gfx driver - I dont expose an explicit primarySetRegion; so the primary layer is treated no differently to any other layer. For this reason, I currently expect modes for all screens to have been set as required before the app is run, and resizing the primary layer just moves it within the existing mode. I'm thinking that I could add mode change support by extending my existing generic layer SetRegion() function - when this is called for the first layer in a screen, then I would set the new mode for that screen to the layer (region) size. Can anyone tell me, - how does directfb choose a layer to become the primary - is it always layer '0'? - in which case, would allocating the first layer in the first screen as the implicit primary as I've suggested be valid? - furthermore, would allocating the first layer in every screen as the 'mode defining layer' be correct and consistent (PRIMARY, SECONDARY, ... )? Regards, Jason Barstow. Notice The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying or distribution of the message, or any action taken by you in reliance on it, is prohibited and may be unlawful. If you have received this message in error, please delete it and contact the sender immediately. Thank you. 3Dlabs Ltd company number 02883883 registered in England and Wales at 79 Knightsbridge, London SW1X 7RB _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev