English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 03 March 2019, 17:35   #1
arcanist
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?
arcanist is offline  
Old 03 March 2019, 17:41   #2
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
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.
StingRay is offline  
Old 03 March 2019, 19:37   #3
arcanist
Registered User
 
Join Date: Dec 2017
Location: Austin, TX
Age: 41
Posts: 405
Perfect, thank you Sting!
arcanist is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:35.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08016 seconds with 13 queries