English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 12 September 2020, 11:40   #1
Honitos
Registered User
 
Honitos's Avatar
 
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
Alternative of BestCModeIDTagList()

Currently, the screens.include which ist part of AmiBlitz3 uses the function BestCModeIDTagList() to find best matching screenmode given height,width and depth parameters.


As there is no native support for GFX-cards there is no os-function that does the same.


Nevertheless, does someone know any alternatives to get rid of the cybergraphics.library only for that call?
Honitos is offline  
Old 12 September 2020, 11:58   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,000
BestModeID does indeed the same. I never used the function you mentioned.
thomas is offline  
Old 12 September 2020, 18:19   #3
Honitos
Registered User
 
Honitos's Avatar
 
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
Thanks Thomas for the hint.
I will change the include-function to use that function in case the program detects workbench V39. In the other case, it will try to use the function out of cybergraphics.library.

Interesting is that both functions return different modeIDs with the same parameters.
Example:

scr_width = 800
scr_height = 600
scr_depth = 8

BestCModeIDTagList returns screenmodeid $50041000
BestModeIDA() returns screenmodeid $50031000

Unfortunately I am not informed about the screenmodeflags behind that IDs...
Do you know the difference between the returned IDs?
Honitos is offline  
Old 12 September 2020, 20:18   #4
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,000
Quote:
Originally Posted by Honitos View Post
I will change the include-function to use that function in case the program detects workbench V39. In the other case, it will try to use the function out of cybergraphics.library.
That makes no sense. CGX requires WB 3.0, too.


Quote:
Unfortunately I am not informed about the screenmodeflags behind that IDs...
They are RTG modes. The values have different meanings on different machines. You have to check with GetDisplayInfoData what they actually mean.
thomas is offline  
Old 13 September 2020, 17:36   #5
Honitos
Registered User
 
Honitos's Avatar
 
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
Quote:
Originally Posted by thomas View Post
That makes no sense. CGX requires WB 3.0, too.

Oh, in this case... you are right. I'll just replace the function calls.
Thanks again.
Honitos 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
ClassicWB alternative Spec-Chum New to Emulation or Amiga scene 13 06 January 2020 14:54
Alternative to Filemaster Galahad/FLT support.Apps 19 25 September 2016 12:14
Cocolino alternative? girv support.Hardware 13 18 December 2008 10:27
Alternative Worlds plasmatron Retrogaming General Discussion 0 14 November 2005 20:47

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 11:25.

Top

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