11 January 2016, 19:36 | #1 |
Registered User
Join Date: Jul 2008
Location: Poland
Posts: 662
|
Detecting screen mode
Is there a system function that would detect current screen depth and color order (RGB/BGR) ?
|
11 January 2016, 20:18 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,002
|
You can use GetVPModeID to get the mode ID of the current screen and then for example p96GetModeIDAttr to find out the pixel format. CGX should have a similar function, I just don't remember it right now.
|
11 January 2016, 20:19 | #3 |
Amigan
Join Date: Feb 2012
Location: London
Posts: 1,311
|
OS screen I assume? RGB/BGR implies a graphics card.
Look at cybergraphics.library/LockBitMapTags() (p96 should emulate this?) Code:
int pixelFormat; int handle = LockBitMapTags(screen, LBMI_PIXFMT, &pixelFormat); if( handle != 0 ) { switch(pixelFormat) { case PIXMFT_RGB: ... } } |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Full screen mode WinUAE 0.8.22 | Erik | support.WinUAE | 4 | 19 March 2011 19:35 |
ECS screen mode colours. | redblade | support.Hardware | 10 | 28 June 2010 05:30 |
screen mode cli? | xc8 | request.Apps | 5 | 21 April 2009 23:02 |
Screen Mode problem! | Fugitif.fa | support.WinUAE | 2 | 14 February 2006 21:53 |
screen mode | Jherek Carnelia | support.WinUAE | 1 | 03 July 2003 09:36 |
|
|