Skip to content

Commit

Permalink
Fixes debug font
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Jul 31, 2024
1 parent e25a3ac commit 66d0735
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion korge-core/src/korlibs/korge/bitmapfont/DebugBitmapFont.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ private fun debugBmpFont(tex: BmpSlice): BitmapFont {

suspend fun debugBmpFont(): BitmapFont {
if (debugBmpFontOrNull == null) {
debugBmpFontOrNull = debugBmpFont(DEBUG_FONT_BYTES.openAsync().readBitmap(ImageDecodingProps(preferKotlinDecoder = true)).slice())
//debugBmpFontOrNull = debugBmpFont(DEBUG_FONT_BYTES.openAsync().readBitmap(ImageDecodingProps(preferKotlinDecoder = true)).slice())
debugBmpFontOrNull = debugBmpFont(DEBUG_FONT_BYTES.openAsync().readBitmap(ImageDecodingProps(preferKotlinDecoder = true)).toBMP32IfRequired().slice())
}
return debugBmpFontOrNull!!
}

0 comments on commit 66d0735

Please sign in to comment.