@@ -10,7 +10,7 @@ Class Pixmap
#rem monkeydoc @hidden
#end
- Field Discarded:Void()
+ Field OnDiscarded:Void()
#rem monkeydoc Creates a new pixmap.
@@ -37,7 +37,7 @@ Class Pixmap
_depth=depth
_data=data
_pitch=pitch
- Discarded=Lambda()
+ OnDiscarded=Lambda()
libc.free( data )
End
@@ -70,7 +70,7 @@ Class Pixmap
_pitch=0
_depth=0
_data=Null
- Discarded()
+ OnDiscarded()
#rem monkeydoc The pixmap width.
@@ -66,7 +66,7 @@ Function LoadPixmap:Pixmap( path:String,format:PixelFormat )
Local pixmap:=New Pixmap( x,y,format,data,x*PixelFormatDepth( format ) )
- pixmap.Discarded+=Lambda()
+ pixmap.OnDiscarded+=Lambda()
stbi_image_free( data )