opendisplay and 68k
Posted: Thu May 14, 2015 1:00 am
Hi, I wonder what a 68k binary does different with opendisplay() than MorphOS or Windows.
This code runs nicely on MorphOS (native) and Windows, but if I run that as 68k binary it fails. The System complains it would fail to change display size to 1024x580 (or whatever display I want to open).
IMHO interestingly not only on an all 68k system (WinUAE), but also when run by trance under MorphOS. Hence it seems to me the issue is not caused by the host OS itself but within the 68k binary. What to do to make it run? i played a bit with the opendisplay options, but no luck yet.
Code: Select all
@DISPLAY 1, { X=#CENTER, Y=#CENTER, borderless=True, width=800, height=300, noclose=True, Color = #WHITE }
@DISPLAY 2, { Title = "Window 2", X=10, Y=10, width=560, height=540, hidden=True, Color= #WHITE }
@DISPLAY 3, { Title = "Window 3",X=600, Y=200,width=1000, height=400,noclose=True, hidden=True, Color= #WHITE }
@DISPLAY 4, { Title = "Window 4",X=400, Y=1,width=1024, height=580, noclose=True,hidden=True, Color= #WHITE }
///snip -- doing something on Display 1
OpenDisplay (4)
OpenDisplay (3)
OpenDisplay (2)
IMHO interestingly not only on an all 68k system (WinUAE), but also when run by trance under MorphOS. Hence it seems to me the issue is not caused by the host OS itself but within the 68k binary. What to do to make it run? i played a bit with the opendisplay options, but no luck yet.