Difference between revisions of "Screen:setSize"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Attempts to fix the size of the screen or window, if allowed by the platform.
 
Attempts to fix the size of the screen or window, if allowed by the platform.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Screen:setSize(w,h)
 
Screen:setSize(w,h)
 
</source>
 
</source>

Revision as of 14:30, 13 July 2023

Available since: Gideros 2017.8
Class: Screen

Description

Attempts to fix the size of the screen or window, if allowed by the platform. <syntaxhighlight lang="lua"> Screen:setSize(w,h) </source>

Parameters

w: (number) the new screen width
h: (number) the new screen height