SetResizeMode
SetResizeMode

Sets the method used by the JAM object when the window is bigger/smaller than expected.

bSuccess = myJAM.SetResizeMode( Mode, Border_Colour )

Return value
TRUE if the mode was set successfully, otherwise FALSE.

Parameters
  • Mode
    The mode to use. This can be one of the following:
    • RESIZE_EXTENDED
      In this mode, the game will expand/contract to fill the window (default)
    • RESIZE_STRETCH
      In this mode, the game will stretch to fit the window
    • RESIZE_BORDER
      In this mode, the game will remain centered in the window, and a border colour will be used
  • Border_Colour
    In RESIZE_BORDER mode, this colour will be used for the border around the game. The default colour is black (0x000000)
Comments

In all modes, mouse interaction, etc. is adapted to work as if the game was running normally.
Note that RESIZE_STRETCH is the slowest mode, while RESIZE_EXTENDED is faster for smaller windows and the default size, and RESIZE_BORDER is faster for bigger windows.

See also
JAM:GetResizeMode
JAM:GetBorderColor



JAM © 2005 no one in partiular
Project started by David Evans in 2005