瀏覽代碼

Merge pull request #48 from GWRon/fix_sdlrendermax2d_setalpha

Fix: [SDLRenderMax2D] make SetAlpha() set draw color (alpha)
Brucey 2 年之前
父節點
當前提交
0bd6718418
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      sdlrendermax2d.mod/sdlrendermax2d.bmx

+ 1 - 0
sdlrendermax2d.mod/sdlrendermax2d.bmx

@@ -213,6 +213,7 @@ Type TSDLRenderMax2DDriver Extends TMax2DDriver
 		If alpha>1.0 alpha=1.0
 		If alpha>1.0 alpha=1.0
 		If alpha<0.0 alpha=0.0
 		If alpha<0.0 alpha=0.0
 		drawColor.a=alpha*255
 		drawColor.a=alpha*255
+		renderer.SetDrawColor(drawColor.r, drawColor.g, drawColor.b, drawColor.a)
 	End Method
 	End Method
 
 
 	Method SetLineWidth( width# ) Override
 	Method SetLineWidth( width# ) Override