CloneWb Screen
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: CloneWb Screen
Should already be possible by specifying 0 in SCRWIDTH and SCRHEIGHT arguments, i.e.
Code: Select all
Hollywood file.hws -scrwidth 0 -scrheight 0
Re: CloneWb Screen
It´s not working within the script, using the @screen-preprocessor-command and leads always to a 640x480-Screen/Window.Andreas wrote:Should already be possible by specifying 0 in SCRWIDTH and SCRHEIGHT arguments, i.e.
Code: Select all
Hollywood file.hws -scrwidth 0 -scrheight 0
This seems to be the only way to open a Fullscreen with the Host-Resolution, but it has the big disadvantage, that you have always a second window named "Hollywood" in 640x480 open on Windows:
Code: Select all
SetDisplayAttributes({title=#VERSION, width=1600, height=1200, Layers= True, scalemode=#SCALEMODE_LAYER, Smoothscale=True, scalewidth = GetAttribute(#DISPLAY, 0, #ATTRHOSTWIDTH) , scaleheight = GetAttribute(#DISPLAY, 0, #ATTRHOSTHEIGHT), hidden=True })
ChangeDisplayMode(#DISPMODE_FULLSCREEN, GetAttribute(#DISPLAY, 0, #ATTRHOSTWIDTH), GetAttribute(#DISPLAY, 0, #ATTRHOSTHEIGHT))
I know it´s for compatibility-reasons, but it´s confusing for the coder!
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: CloneWb Screen
Now I'm confused... you want to clone the Workbench screen but you mention Windows in the same context? You know that no other operating system supported by Hollywood has the concept of screens, right? The screen concept is really unique to the Amiga.It´s not working within the script, using the @screen-preprocessor-command and leads always to a 640x480-Screen/Window.
This seems to be the only way to open a Fullscreen with the Host-Resolution, but it has the big disadvantage, that you have always a second window named "Hollywood" in 640x480 open on Windows:
Well, there is of course a rationale behind this design. The preprocessor commands like @DISPLAY are for compile-time definitions whereas commands like SetDisplayAttributes() are for run-time changes to an existing display. The @SCREEN preprocessor command specifies the initial screen mode for the entire script. It is not possible to merge this with the @DISPLAY preprocessor command because on Amiga systems, there could be multiple displays on a single screen. Of course, on systems like Windows the @SCREEN doesn't really make sense and could be merged with @DISPLAY but on AmigaOS it's not that easy.In general, it´s very confusing having this several commands like Setdisplayattributes, changedisplaymode, @screen, @display...etc.
I know it´s for compatibility-reasons, but it´s confusing for the coder!
To cut a long story short: I don't really know what you want to do because you mention Windows and cloning Wb screen in the same context which doesn't make sense. Please explain it in some more detail and maybe I can add the feature in the future if it's not possible already.
Re: CloneWb Screen
Sorry, i have forgot to mention that i did a programm that should run on Windows AND Amiga with the same codebase. And in that case i have experienced this second window on Windows appering what is really disturbing and looking unprofessional.Andreas wrote:Now I'm confused... you want to clone the Workbench screen but you mention Windows in the same context? You know that no other operating system supported by Hollywood has the concept of screens, right? The screen concept is really unique to the Amiga.It´s not working within the script, using the @screen-preprocessor-command and leads always to a 640x480-Screen/Window.
This seems to be the only way to open a Fullscreen with the Host-Resolution, but it has the big disadvantage, that you have always a second window named "Hollywood" in 640x480 open on Windows:
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: CloneWb Screen
Ok, but I still don't know when exactly you are confronted with this second window on Windows...