Browse Source

Cleanups.

Mark Sibly 8 years ago
parent
commit
8ee97e08b5
2 changed files with 8 additions and 8 deletions
  1. 5 5
      modules/std/graphics/pixmap.monkey2
  2. 3 3
      modules/std/requesters/requesters.monkey2

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

@@ -12,7 +12,7 @@ Class Pixmap Extends Resource
 
 	#rem monkeydoc Creates a new pixmap.
 	
-	When you have finished with the pixmap, you should call its inherited [[Resource.Discard]] method.
+	When you have finished with the pixmap, you should call its inherited [[resource.Resource.Discard]] method.
 
 	@param width The width of the pixmap in pixels.
 	
@@ -147,7 +147,7 @@ Class Pixmap Extends Resource
 	
 	#end
 	Method SetPixel( x:Int,y:Int,color:Color )
-		DebugAssert( x>=0 And y>=0 And x<_width And y<_height )
+		DebugAssert( x>=0 And y>=0 And x<_width And y<_height,"Pixmap pixel coordinates out of range" )
 		
 		Local p:=PixelPtr( x,y )
 		Select _format
@@ -186,7 +186,7 @@ Class Pixmap Extends Resource
 	
 	#end
 	Method GetPixel:Color( x:Int,y:Int )
-		DebugAssert( x>=0 And y>=0 And x<_width And y<_height )
+		DebugAssert( x>=0 And y>=0 And x<_width And y<_height,"Pixmap pixel coordinates out of range" )
 	
 		Local p:=PixelPtr( x,y )
 		Select _format
@@ -222,7 +222,7 @@ Class Pixmap Extends Resource
 	
 	#end
 	Method SetPixelARGB( x:Int,y:Int,color:UInt )
-		DebugAssert( x>=0 And y>=0 And x<_width And y<_height )
+		DebugAssert( x>=0 And y>=0 And x<_width And y<_height,"Pixmap pixel coordinates out of range" )
 	
 		Local p:=PixelPtr( x,y )
 		Select _format
@@ -259,7 +259,7 @@ Class Pixmap Extends Resource
 	
 	#end
 	Method GetPixelARGB:UInt( x:Int,y:Int )
-		DebugAssert( x>=0 And y>=0 And x<_width And y<_height )
+		DebugAssert( x>=0 And y>=0 And x<_width And y<_height,"Pixmap pixel coordinates out of range" )
 	
 		Local p:=PixelPtr( x,y )
 		Select _format

+ 3 - 3
modules/std/requesters/requesters.monkey2

@@ -45,7 +45,7 @@ Notify activates a simple modal dialog informing the user of an event. The optio
 #end
 Function Notify:Void( title:String,text:String,serious:Bool=False )="bbRequesters::Notify"
 
-#rem monkeydoc Activates a simple modal Yes/No dialog.
+#rem monkeydoc Activates a modal Yes/No dialog.
 
 Confirm activates a simple modal dialog requesting the user to select between Yes and No options. If the user selects Yes, then Confirm returns true. Otherwise, false is returned.
 
@@ -59,7 +59,7 @@ Proceed activates a simple modal dialog requesting the user to select between Ye
 #end
 Function Proceed:Int( title:String,text:String,serious:Bool=False )="bbRequesters::Proceed"
 
-#rem monkeydoc Activate a modal file requester dialog.
+#rem monkeydoc Activates a modal file requester dialog.
 
 RequestFile activates a modal file requester dialog.
 
@@ -76,7 +76,7 @@ Returns selected file path, or an empty string if dialog was cancelled.
 #end
 Function RequestFile:String( title:String,filter:String="",save:Bool=False,file:String="" )="bbRequesters::RequestFile"
 
-#rem monkeydoc Activates a modal directory path dialog.
+#rem monkeydoc Activates a modal directory requester dialog.
 
 RequestDir activates a modal directory path dialog.