13 August 2020, 14:01 | #1 |
Registered User
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
|
ObtainBestPenA() / ObtainPen()
I am working on AmiBlitz3-IDE to make it work with Kickstart 2.0 instead of at least Kickstart 3.0...
Is there any alternative to the mentioned functions? In the configuration you can specify colors; at startup the IDE tries first to get the best matching available colors using ObtainBestPenA() which war introduced with V39 of the system... |
13 August 2020, 17:43 | #2 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,366
|
I think that's very difficult to emulate ObtainPen() or ObtainBestPenA() under OS 2.x, because there are not even the required structures available for the screens viewport and colormap. The colormap structure has been expanded a lot in v39 and v36 has nothing like the PaletteExtra structure which is essential for these functions. It looks as if there was no pen management for OS 2.x yet.
|
13 August 2020, 18:48 | #3 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,187
|
I'd recommend using only the pen colors defined in the color preferences profile. The extensions to the pen colors in OS 3 were basically a nod to RTG before it came. The chipset can use copper split-screens to avoid palette collisions already.
|
13 August 2020, 19:56 | #4 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,000
|
FindColor() exists in 2.x already. It does not allocate a pen or change the pen's color, it just finds the best matching pen.
|
13 August 2020, 20:46 | #5 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,366
|
Hmm? The autodocs and LVOs say that FindColor() was introduced in v39 of graphics.library. Is there a similar function for OS 2.x somewhere else, maybe a private or outdated function in OS 3.x?
|
13 August 2020, 22:59 | #6 |
Registered User
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
|
ObtainBestPenA() / ObtainPen()
FindColor() would fit my needs... I am going to check that routine tomorrow...
Thanks Thomas |
14 August 2020, 15:44 | #7 | |
Registered User
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
|
Quote:
PeterK is right: The Autodocs say, FindColor() was introduced with V39 ... and it is correct, just tested it, not availabel with Kick2.04... Last edited by Honitos; 14 August 2020 at 19:49. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|