alpha trasparent windows crash on MOS 16bit...

Report any Hollywood bugs here
User avatar
Tuxedo
Posts: 338
Joined: Sun Feb 14, 2010 12:41 pm

alpha trasparent windows crash on MOS 16bit...

Post by Tuxedo »

Hi!
I'm using a trasparent window in LoViewThumb to show image infos and it works pretty good on 24bit screens, on 16 bit screens under AmigaOS4.x the window was simply not trasparent, but on MOS 2.7 Hollywood crash and complain about alpha trasparent windows cant work...
That was correct or was a bug? I ask it since on AmigaOS4.1 simply the window was not trasparent and all workls fine...

Thank you!
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: alpha trasparent windows crash on MOS 16bit...

Post by airsoftsoftwair »

That's normal behaviour. On 16-bit screens there's obviously no room for any alpha channel information because you only have 5 bits red, 6 bits green and 5 bits of blue. By the way, please do not use the verb "crash" when Hollywood exits cleanly with an error message. That's not a crash, it's a clean exit because something went wrong. A crash means that Hollywood throws a system exception, freezes your system or leads to a reboot etc. Such crashes are always bugs. But if Hollywood just shows a requester complaining about something and then exits cleanly, then that's definitely not a crash but a predefined way of exiting to prevent a crash :)
User avatar
Tuxedo
Posts: 338
Joined: Sun Feb 14, 2010 12:41 pm

Re: alpha trasparent windows crash on MOS 16bit...

Post by Tuxedo »

Ok,
not crash but clean exit, but however why that dont hanppen on AmigaOS4.1? Why simply Hollywood dont have the same (better) behaviour than on AmigaO4.1 also on MOS2.7 diaplaying a not trasparent window? OS limitaion?
Simone"Tuxedo"Monsignori, Perugia, ITALY.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: alpha trasparent windows crash on MOS 16bit...

Post by djrikki »

Tux, morale of the story.. do not use anything less than a 32-bit screen. :lol:

The reasons too use anything less than 32-bit are so few they are not even worth considering.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
Tuxedo
Posts: 338
Joined: Sun Feb 14, 2010 12:41 pm

Re: alpha trasparent windows crash on MOS 16bit...

Post by Tuxedo »

yes but since on OS4.1 it works why dont works also on MOS? Some users uses 16bit screen to save video memory(like MacMini or Sam440ep users)...
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: alpha trasparent windows crash on MOS 16bit...

Post by airsoftsoftwair »

It's implementation dependent. AFAIR OS4 has the alpha transparency feature implemented in its layers.library while on MorphOS it's dependent on the screen bitmap directly. That's why it's impossible to use alpha transparency on anything but 32-bit modes in MorphOS.
User avatar
Tuxedo
Posts: 338
Joined: Sun Feb 14, 2010 12:41 pm

Re: alpha trasparent windows crash on MOS 16bit...

Post by Tuxedo »

Ok,
so I've to check if the current screen was 16bit to use or not display transparency...but how? In GetAttribute() command I dont found anything regarding host screen type...
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
fingus
Posts: 269
Joined: Fri Sep 16, 2011 9:53 am

Re: alpha trasparent windows crash on MOS 16bit...

Post by fingus »

You MUST enable Compositing under AmigaOS4.1 so that transparency works on 16Bit Workbench!

And this only works if you handle it with BGPIC!
User avatar
jPV
Posts: 603
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: alpha trasparent windows crash on MOS 16bit...

Post by jPV »

Hmmdi... I noticed now that MorphOS hangs when trying to run alpha transparent windows on 16bit screens. I haven't got logs yet, because almost everything freezes, even though mouse pointer moves, but can't do much anything else. I've tried several times with the AlphaApple example.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: alpha trasparent windows crash on MOS 16bit...

Post by airsoftsoftwair »

Confirmed. Will be fixed.
Post Reply