Skip to content

Commit

Permalink
Upgrade to latest lwjgl
Browse files Browse the repository at this point in the history
  • Loading branch information
markjfisher committed May 30, 2023
1 parent ff5ae63 commit 79c898d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions advents/src/test/kotlin/net/fish/y2022/Day25Test.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.fish.y2022

import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.CsvSource

Expand All @@ -25,4 +26,9 @@ internal class Day25Test {
assertThat(Day25.fromSnafu(s)).isEqualTo(d.toLong())
assertThat(Day25.toSnafu(d.toLong())).isEqualTo(s)
}

@Test
fun `can convert`() {
println(Day25.toSnafu(18L))
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mordantVersion=2.0.0-beta9
orToolsVersion=9.5.2237
kEvalVersion=0.8.0

lwjglVersion=3.3.1
lwjglVersion=3.3.2
jomlVersion=1.10.5

# see https://github.com/kotlin-graphics/mary/tree/master/kotlin/graphics for the subdirs and their versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class DumboOctopusGame : GameLogic, GameWorld<DumboOctopusItemData>(
if (animationStep >= startsOn) {
// now work out the compressed pulse flashing colour for this item.
// Normally, if it started at animation 0, then we look up the animation colours at x position directly.
// Buf it we have less steps to take, we need to speed through the animation
// But if we have less steps to take, we need to speed through the animation
val percentageThrough = (animationStep + 1 - startsOn) / (gameSpeed - startsOn)
val brightness = SurfaceOptions.calculatePercentage(percentageThrough, flashingBrightnessMap, 5)
val octopus = storage.getData(flasher.item)!!
Expand Down
2 changes: 1 addition & 1 deletion visualisations/src/main/kotlin/advents/ui/Hud.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ abstract class Hud {
if (vg == MemoryUtil.NULL) {
throw Exception("Could not init nanovg")
}
val font = NanoVG.nvgCreateFontMem(vg, FONT_NAME, fontBuffer, 0)
val font = NanoVG.nvgCreateFontMem(vg, FONT_NAME, fontBuffer, false)
if (font == -1) {
throw Exception("Could not add font")
}
Expand Down

0 comments on commit 79c898d

Please sign in to comment.