Browse Source

Changed Pixmap.Discard system.

Mark Sibly 9 years ago
parent
commit
e582df6ec9
2 changed files with 4 additions and 4 deletions
  1. 3 3
      modules/std/graphics/pixmap.monkey2
  2. 1 1
      modules/std/graphics/pixmaploader.monkey2

+ 3 - 3
modules/std/graphics/pixmap.monkey2

@@ -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
 	End
@@ -70,7 +70,7 @@ Class Pixmap
 		_pitch=0
 		_depth=0
 		_data=Null
-		Discarded()
+		OnDiscarded()
 	End
 	
 	#rem monkeydoc The pixmap width.

+ 1 - 1
modules/std/graphics/pixmaploader.monkey2

@@ -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 )
 	End