Wargus / stratagus

The Stratagus strategy game engine
GNU General Public License v2.0
622 stars 119 forks source link

Allow to define stretch mode to title screen: #695

Closed Jarod42 closed 1 month ago

Jarod42 commented 2 months ago
SetTitleScreens(
  {Image = "ui/title.png", StretchMode = "none"}, -- Keep original image size
  {Image = "ui/title.png", StretchMode = "keep-ratio"}, -- resize to touch border, and keep original size ratio
  {Image = "ui/title.png", StretchMode = "stretch"} -- (default) resize to the full windows
)