03 March 2019, 17:35 | #1 |
Registered User
Join Date: Dec 2017
Location: Austin, TX
Age: 41
Posts: 405
|
Detect RTG
Is there a way to detect when an RTG display is active? I'd like to avoid calling CloseWorkBench as it's unnecessary to save chip RAM.
I had a look at WhichAmiga and it looks like it tries to OpenLibrary the various RTG libraries. Is there a better way? |
03 March 2019, 17:41 | #2 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Check the bitmap flags in the screen structure (GetBitmapAttr), if BMF_STANDARD is set, it's a native screen, i.e. no RTG.
|
03 March 2019, 19:37 | #3 |
Registered User
Join Date: Dec 2017
Location: Austin, TX
Age: 41
Posts: 405
|
Perfect, thank you Sting!
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Picasso IV Z3 Don't Detect | Zilog | support.WinUAE | 4 | 02 December 2018 18:47 |
Detect AGA | Steffest | Coders. C/C++ | 2 | 22 October 2017 12:20 |
Detect NTSC or PAL | highpuff | Coders. Asm / Hardware | 14 | 18 March 2015 17:23 |
How to detect WinUAE | demolition | support.Apps | 13 | 13 November 2012 11:21 |
'detect pixel format' | Melroc | support.WinUAE | 2 | 09 December 2003 16:03 |
|
|