mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-16 08:36:07 +09:00
small remedy for KDE Plasma
This commit is contained in:
@@ -320,7 +320,8 @@ public class AppLoader implements ApplicationListener {
|
|||||||
appConfig.backgroundFPS = getConfigInt("displayfps");
|
appConfig.backgroundFPS = getConfigInt("displayfps");
|
||||||
appConfig.foregroundFPS = getConfigInt("displayfps");
|
appConfig.foregroundFPS = getConfigInt("displayfps");
|
||||||
appConfig.title = GAME_NAME;
|
appConfig.title = GAME_NAME;
|
||||||
appConfig.forceExit = false;
|
appConfig.forceExit = true; // it seems KDE 5 likes this one better...
|
||||||
|
// (Plasma freezes upon app exit. with forceExit = true, it's only frozen for a minute; with forceExit = false, it's indefinite)
|
||||||
appConfig.samples = 4; // force the AA on, if the graphics driver didn't do already
|
appConfig.samples = 4; // force the AA on, if the graphics driver didn't do already
|
||||||
|
|
||||||
// load app icon
|
// load app icon
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ internal object WeatherMixer : RNGConsumer {
|
|||||||
val parallaxTop = (parallaxMidpt - (parallaxSize / 2f)).coerceIn(0f, 1f)
|
val parallaxTop = (parallaxMidpt - (parallaxSize / 2f)).coerceIn(0f, 1f)
|
||||||
val parallaxBottom = (parallaxMidpt + (parallaxSize / 2f)).coerceIn(0f, 1f)
|
val parallaxBottom = (parallaxMidpt + (parallaxSize / 2f)).coerceIn(0f, 1f)
|
||||||
|
|
||||||
println("$parallaxZeroPos, $parallax | $parallaxTop - $parallaxMidpt - $parallaxBottom | $parallaxDomainSize")
|
//println("$parallaxZeroPos, $parallax | $parallaxTop - $parallaxMidpt - $parallaxBottom | $parallaxDomainSize")
|
||||||
|
|
||||||
// draw skybox to provided graphics instance
|
// draw skybox to provided graphics instance
|
||||||
val colTopmost = getGradientColour(world, skyboxColourMap, 0, timeNow).toGdxColor()
|
val colTopmost = getGradientColour(world, skyboxColourMap, 0, timeNow).toGdxColor()
|
||||||
|
|||||||
Reference in New Issue
Block a user