diff options
Diffstat (limited to 'templates/glsl/kotlin/Program.kt')
| -rw-r--r-- | templates/glsl/kotlin/Program.kt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/templates/glsl/kotlin/Program.kt b/templates/glsl/kotlin/Program.kt index 3e436e8..08b74d2 100644 --- a/templates/glsl/kotlin/Program.kt +++ b/templates/glsl/kotlin/Program.kt @@ -10,10 +10,18 @@ import phenax.utils.* fun main() = application { recordDuration(5.seconds()) - configure { - width = 640 - height = 480 - windowResizable = false + if (recordingEnabled || screenshotEnabled) { + configure { + width = 1920 + height = 1080 + windowResizable = false + } + } else { + configure { + width = 640 + height = 360 + windowResizable = false + } } oliveProgram { |
