ChangeDisplaySize -- change the dimensions of the current display
ChangeDisplaySize(width, height[, args])
This function changes the dimensions of the currently active display to the specified dimensions. The background picture associated with the current display will be scaled to fit the new dimensions. Therefore you can also use this function for scaling background pictures.

New in V2.0: You can pass #KEEPASPRAT as either width or height. Hollywood will calculate the size then automatically by taking the aspect-ratio of the display into account.

Starting with Hollywood 2.0, width and height can also be a string containing a percent specification, e.g. "50%".

New in Hollywood 4.0: You can pass a table in the optional third argument to specify further options. Currently, the table can contain the following fields:

Specifies the new x-position for the display. If you want the display to keep its current x-position, pass the special constant #KEEPPOSITION. Defaults to #CENTER.

Specifies the new y-position for the display. If you want the display to keep its current y-position, pass the special constant #KEEPPOSITION. Defaults to #CENTER.

Specifies whether or not the graphics shall be scaled using anti-alias interpolation. Defaults to False.

Starting with Hollywood 7.0 you can also pass the special constant #NATIVE in the width and height parameters. In that case, Hollywood will use the dimensions of the display's host device.

desired new width for the display
desired new height for the display
optional: further configuration options (V4.0)
ChangeDisplaySize(320, 240)
This changes the display size to 320x240.

Show TOC