A1222+ AmigaOS or Update 2 trouble [solved]

This forum is for general developer support questions.
Post Reply
User avatar
gdridi
Posts: 73
Joined: Sat Aug 11, 2012 10:17 am

A1222+ AmigaOS or Update 2 trouble [solved]

Post by gdridi »

Hello !

It seems, I do something wrong in this peace of code:

Code: Select all

my_screen = IIntuition->OpenScreenTags(NULL,
    SA_Title, "Arabe : Normal",
         SA_Pens, (ULONG) pens,
         SA_Depth, 1,	// 1.2.3.4!		// look also to SetAPen() Depth fourth(4) needs more than a SetBPen, a better colormap to handle cursor COMPLEMENT
         TAG_DONE);
I launch my program from a shell and the screen titled: "Arabe : Normal" won’t appeared (no screen appears).

I use the A1222+
My compiled code is from a SAMEP AOSFE update 0 SDK 5x and it worked on my SAM.

Some ideas? Perhaps the depth = 1 is to small ??

DGILLES - os4depot.net - 1st of April 2024
Last edited by gdridi on Wed May 29, 2024 4:04 pm, edited 2 times in total.
User avatar
thomasrapp
Posts: 311
Joined: Sat Jun 18, 2011 11:22 pm

Re: A1222+ AmigaOS or Update 2 trouble

Post by thomasrapp »

// tester my_screen à NULL
Did you do what the comment says? And what is the result? Did you get a NULL pointer, i.e. opening the screen failed? Or did you get a pointer to an invisible screen?

Please also show how you define "pens" where SA_Pens points to.

I guess it tries to default to an AGA native screen mode but native chipset is not available. Try to add SA_LikeWorkbench,TRUE to point it to the same monitor as the Workbench screen. Or add SA_DisplayID with a valid screen mode.

And next time please make a better thread title. Your problem surely has nothing to do with the A1222 and you don't have trouble updating it.
User avatar
gdridi
Posts: 73
Joined: Sat Aug 11, 2012 10:17 am

Re: A1222+ AmigaOS or Update 2 trouble

Post by gdridi »

@Thomas

Thanks to you, I progress and found that:

Code: Select all

UWORD pens[] = { ~0 };

my_screen = IIntuition->OpenScreenTags(NULL,
    SA_Title, "Arabe : Normal",
         SA_Pens, (ULONG) pens,
         SA_Depth, 1,
         TAG_DONE);
This code crashes on my AOSFE on A1222+
I know because when I add "SA_LikeWorkbench, TRUE," it did not crash.
And when I used SA_DisplayID instead of SA_LikeWorkbench it crashes too.

Normally, the code above should work.

Would someone like to try on AOSFE for A1222+

Thanks Thomas who found the bug.

Now, I think that perhaps my monitor (device) named Radeon in devs/monitors has ToolTypes not well defined.
Only 320x250@60D (yes 60D)
320x256@60D
Exists

Help appreciated

DGILLES - os4depot.net - 1st of April 2024
User avatar
gdridi
Posts: 73
Joined: Sat Aug 11, 2012 10:17 am

Re: A1222+ AmigaOS or Update 2 trouble [solved]

Post by gdridi »

Yes!
It was on the tool types of tab ´icon’ of my Radeon monitor (devs/Monitors).

Comment this line with parenthesis:
(DISABLEFAKENATIVE=Yes)

Another thing!
With AOS4.1FEa1222 someone can not quit the editors correctly (don’t know why).
For instance: when using the "s:scripted" script to launch the two editors (stevie and ed).

Debug info says : "BeginIO in arabicconsole.device" but I’m quitting!
But It works on my SAM440ep with AOS4.1FEu0

DGILLES - console ArabSCII - os4depot.net - 1st of April 2024
Post Reply