瀏覽代碼

Merge pull request #473 from Ghouly-The-Ghost/patch-1

Fixed typo in a Color constructor, alpha wasn't being used
Mark Sibly 6 年之前
父節點
當前提交
89b895752d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/std/graphics/color.monkey2

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

@@ -168,7 +168,7 @@ Struct Color
 		Self.r=i
 		Self.r=i
 		Self.g=i
 		Self.g=i
 		Self.b=i
 		Self.b=i
-		Self.a=1
+		Self.a=a
 	End
 	End
 	
 	
 	Method New( r:Float,g:Float,b:Float,a:Float=1 )
 	Method New( r:Float,g:Float,b:Float,a:Float=1 )