Skip to content

Commit

Permalink
ADD no-free comment to getDebugBitmap
Browse files Browse the repository at this point in the history
  • Loading branch information
ninovanhooff committed Oct 12, 2024
1 parent 0f032eb commit ac68f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playdate/graphics.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ac68f7a

Please sign in to comment.