Skip to content

Commit

Permalink
Fxies compilation error.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Gasser <[email protected]>
  • Loading branch information
ppanopticon committed Dec 28, 2023
1 parent 8765618 commit 8349d42
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class FileCachedContentFactory(private val basePath: Path) : ContentFactory {
private val backing: FileBackedByteBuffer

/** The type of the [BufferedImage]. */
private val type = bufferedImage.type
private val imageType = bufferedImage.type

/** The width of the [BufferedImage] (is stored explicitly). */
override val width = bufferedImage.width
Expand All @@ -111,7 +111,7 @@ class FileCachedContentFactory(private val basePath: Path) : ContentFactory {
val buf = this.backing.buffer.asIntBuffer()
val colors = IntArray(buf.remaining())
buf.get(colors)
val image = BufferedImage(width, height, type)
val image = BufferedImage(width, height, imageType)
image.setRGBArray(colors)
return image
}
Expand Down

0 comments on commit 8349d42

Please sign in to comment.