But should I avoid writing into these padding bytes? Or is it perfectly safe?
For a very simple example, would this be a safe (although strange) way to clear a screen?
Code: Select all
; example:
; ScreenWidth = 640
; ScreenHeight = 480
; ScreenDepth = 4 (bytes)
If StartDrawing(ScreenOutput())
FillMemory(DrawingBuffer(), DrawingBufferPitch() * ScreenHeight, Color, #PB_Long)
EndIf