From ac68f7a2bcab623ecfd4476770d9e15f3e8c190d Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Sat, 12 Oct 2024 13:00:30 +0200 Subject: [PATCH] ADD no-free comment to getDebugBitmap --- src/playdate/graphics.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playdate/graphics.nim b/src/playdate/graphics.nim index 8402b5b..f7f934c 100644 --- a/src/playdate/graphics.nim +++ b/src/playdate/graphics.nim @@ -341,7 +341,7 @@ proc set*(view: var BitmapView, x, y: int, color: LCDSolidColor) = proc getDebugBitmap*(this: ptr PlaydateGraphics): LCDBitmap = privateAccess(PlaydateGraphics) - return LCDBitmap(resource: this.getDebugBitmap(), free: false) + return LCDBitmap(resource: this.getDebugBitmap(), free: false) # do not free: system owns this proc copyFrameBufferBitmap*(this: ptr PlaydateGraphics): LCDBitmap = privateAccess(PlaydateGraphics)