CreateDisplay mode "ask" / manual select fails in amiga 68k

Report any Hollywood bugs here
Post Reply
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

CreateDisplay mode "ask" / manual select fails in amiga 68k

Post by plouf »

using the same MCVE as previous :)

fi you select manual mode in WinUAE with UAEGFX mode no matter if you choose a 16bit/32bit mode , script fails saying that it is NOT in palette mode and you should select a 16/32 bit screen (which i do)
no problem in aos4 in UAE/UAEGFX and windows 11

Code: Select all

CreateDisplay(2, {Width = 300, Height = 100, X = 10, Y = 10, Title = "", Borderless = True, Fixed = True, Mode = "Ask", Active = True, Hidden = True})
OpenDisplay(2)

Local DisplayMode = GetAttribute(#DISPLAY, 2, #ATTRMODE)

If DisplayMode = #DISPMODE_WINDOWED
	DebugPrint("NOT LOST TEXT")
ElseIf DisplayMode = #DISPMODE_FULLSCREEN
	DebugPrint("LOST TEXT")
EndIf

WaitLeftMouse()
Christos
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: CreateDisplay mode "ask" / manual select fails in amiga 68k

Post by airsoftsoftwair »

True, but seems to occur only with Picasso96. Will be fixed.
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: CreateDisplay mode "ask" / manual select fails in amiga 68k

Post by airsoftsoftwair »

I'm afraid I can't reproduce it any more. Are you testing this on WinUAE or real hardware?
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: CreateDisplay mode "ask" / manual select fails in amiga 68k

Post by plouf »

This was with winuae
No other possible way to select "uaegfx" in screenmode request in other hardware :-)
Christos
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: CreateDisplay mode "ask" / manual select fails in amiga 68k

Post by airsoftsoftwair »

Oops, yeah, right, but unfortunately I can't reproduce it on WinUAE. Since there are many many different WinUAE configurations can you check if it's reproducable on a WinUAE configuration which I could easily replicate here? For example, does it happen with the latest AmiKit? Then I could simply try that myself...

I've tested it on WinUAE with OS 3.9 and the old Picasso96 from Aminet as well as on WinUAE with OS 3.2 and the latest Picasso96 from Icomp but it works on both.
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: CreateDisplay mode "ask" / manual select fails in amiga 68k

Post by plouf »

i use Amikit 10.5 , also tried with AIBB same behaviour

have you choose third option (manual?) because in auto option no problem

this is the exe of above MCVE -> https://limewire.com/d/n31h2#3NtHWdimYU
Christos
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: CreateDisplay mode "ask" / manual select fails in amiga 68k

Post by airsoftsoftwair »

Ok, I can reproduce it with AmiKit. Strictly speaking it's not a Hollywood bug. There must be some patch that is active that causes the ASL screen mode requester to return depth 2 for all modes. Or the screenmode definition is faulty. It only seems to happen with AmiKit (which is full of patches), I can't reproduce it on a clean OS3.9 or OS3.2 installation. Nevertheless, I've added a workaround now.

Code: Select all

- Change [Amiga]: Added workaround for faulty screenmodes which returned depth 2 instead of 16/32 which
  caused Hollywood to report a "Cannot run on palette screens" error 
Post Reply