![]() |
![]() |
#1 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,179
|
Anyone Need OS 1.x Support?
I'm currently working on building up the Blitz Basic / AmiBlitz support section of AmigaCoding.com, and I was wondering does anyone actually need OS 1.x support for system-friendly programs these days?
I'm writing guides on how to create GUIs using various toolkits (GadTools and MUI really). Blitz still has support for the older Intuition gadgets and menus from the pre-GadTools 1.x days, but I'm wondering if it's worth my while writing guides if nobody's ever likely to use them? Cheers! |
![]() |
![]() |
#2 |
J.M.D - Bedroom Musician
Join Date: Apr 2014
Location: los angeles,ca
Posts: 3,268
|
Might be useful, have a 1.2 at home in italy and if i recover it would become a good test platform
|
![]() |
![]() |
#3 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,179
|
Fair enough, I'll add it when I have the newer stuff sorted.
|
![]() |
![]() |
#4 |
A3000-Fan
Join Date: Sep 2008
Location: Germany
Posts: 299
|
Yes, I need 1.3 support.
|
![]() |
![]() |
#5 |
Registered User
Join Date: Oct 2007
Location: Toronto, Canada
Posts: 1,418
|
![]() |
![]() |
![]() |
#6 |
Registered User
Join Date: May 2015
Location: Sweden
Posts: 74
|
![]() |
![]() |
![]() |
#7 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,179
|
Cool. Need to brush up on it myself first
![]() |
![]() |
![]() |
#8 |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 466
|
+1.
Please keep in mind that AmiBlitz is not 1.x nor nonFPU compatible. BlitzBasic still is. Regarding GUI there is ARP and GadTools1.3, which are both usable with BB2. Also, even without "modern" GUI-toolkits the BB2 Gadgets are quite usable and effective, so there is no excuse to not support this! |
![]() |
![]() |
#9 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,179
|
Yep, true. I've got the basics of the old gadgets done now, some finer details still to be written up though. But damn, it's so long since I used them I'd forgotten just how rubbish they are! Great for 1985 I guess, but even GadTools is a world of difference for the better.
As I go, if there are compatibility issues or differences between Blitz and AmiBlitz I'm putting in a note about it, though I should add the whole FPU thing as a general point. The code doesn't necessarily use FPU opcodes, but it's not easy to tell when the compiler sticks them in. I've so far been able to make executables that don't need an FPU, but it's a trial-and-error process and a total PITA. |
![]() |
![]() |
#10 |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 466
|
IMO you should dismiss support for pre2.0 GadTools with AmiBlitz at all. You cannot use it properly and you cannot test it the way you can with BlitzBasic2. the CompilerIDE itself heavily requires new systems, supporting the old GUI always ends up messy.
AmiBlitz is for newer and better GUI-toolkits, don't bother grasping all the problems coming up while using Blitzgadgets from AmiBlitz. ;-) |
![]() |
![]() |
#11 | |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 466
|
Quote:
|
|
![]() |
![]() |
#12 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,179
|
Okay, I've covered the old 1.x Blitz gadgets reasonably well, though I need to get screenshots of the examples working under 1.x (and probably 3.x as well to show the palette differences). Haven't bothered with things like Gadtools support for 1.x - at this stage anyone still using 1.x isn't likely to be a power user with lots of extra toolkits and patches installed, and if they are, they probably don't need simple tutorials like mine.
1.x Intuition menus are covered as well, as are 2.x GadTools. MUI needs more fleshing out, but there's probably enough there to let people get going and figure the rest out using the MUI autodocs. Let me know if there's something else I've missed! |
![]() |
![]() |
#13 |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 466
|
Palette differences are caused by the screens/windows pens, which are swapped (hibrite/shadow) between 1.x/2.x. The drawing of the 1.x Blitz gads is done with the OS's code (AddGList() etc.), so there should be no influence on colours from this angle.
|
![]() |
![]() |
#14 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,179
|
That should be the case, but if you try it you'll find that gadgets look raised in 1.x, but look recessed if the exact same code is run under 3.x. Using the 1.x palette on a 3.x machine will make the gadgets look normal again, but at the end of the day, the OS doesn't really know which colour values are shine and shadow, so you need to set them based on the OS your program is running on.
|
![]() |
![]() |
#15 |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 466
|
Pens are set from Screen/Window init. The palette used doesn't matter. You can run a program with Hi/sh pen gads in different environment and you'lll see the result-
|
![]() |
![]() |
#16 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,179
|
Pens are indeed set from Screen/Window init, but that doesn't take the palette into account. Of course the palette matters - if your palette has the pens swapped, the buttons will be inverted and your software won't know about it. Try run the original Blitz Basic 2.1 under OS 2.0+ and you'll see exactly what I mean - all the gadgets are recessed by default because the pens are set based on the 1.x palette. If you swap the palette around then it all looks fine (but obviously all other software, WB windows etc. look odd), and if you boot from the Blitz 2.1 floppy it uses the 3.1 palette so the gadgets look normal from the start.
Maybe you're thinking about GadTools, which is designed for 2.x up and so assumes the 2.x palette setup by default. I'm talking about the older Intuition gadgets, and included a section in their description about the BorderPens command which can be used to sort out the pens. |
![]() |
![]() |
#17 | ||
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 466
|
Quote:
Quote:
Just tell the coder to maintain the numbers as needed. ![]() |
||
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Providing 2 fire button support / cd32 joypad support | amigapd | request.Other | 0 | 13 July 2015 17:20 |
Can we please have Tapatalk support? | Interceptor | project.EAB | 82 | 04 May 2013 04:47 |
MultiCore support ? | Leo42 | request.UAE Wishlist | 2 | 28 May 2009 18:03 |
Portaudio support (was: WinUAE support for ASIO drivers) | Amiga1992 | support.WinUAE | 57 | 28 March 2009 21:15 |
Multiprocessor support? | AdamSelene | support.WinUAE | 2 | 27 January 2003 11:58 |
|
|