Browse Source

Merge remote-tracking branch 'origin/master'

Brucey 3 years ago
parent
commit
36869e23c9
2 changed files with 2 additions and 2 deletions
  1. 1 1
      d3d9max2d.mod/d3d9max2d.bmx
  2. 1 1
      dxgraphics.mod/d3d9graphics.bmx

+ 1 - 1
d3d9max2d.mod/d3d9max2d.bmx

@@ -717,7 +717,7 @@ Type TD3D9RenderImage Extends TRenderImage
 			_d3ddev.SetRenderState(D3DRS_SCISSORTESTENABLE, False)
 		Else
 			_d3ddev.SetRenderState(D3DRS_SCISSORTESTENABLE, True)
-			Local rect[] = [x , y, x + width, y + height]
+			Local rect:Int[] = [x , y, x + width, y + height]
 			_d3ddev.SetScissorRect(rect)
 		EndIf
 

+ 1 - 1
dxgraphics.mod/d3d9graphics.bmx

@@ -83,7 +83,7 @@ Function OpenD3DDevice:Int( hwnd:Byte Ptr,width:Int,height:Int,depth:Int,hertz:I
 	
 	'_d3dDev' = New IDirect3DDevice9
 
-	Function CheckDepthFormat(format:Int)
+	Function CheckDepthFormat:Int(format:Int)
 	    Return _d3d.CheckDeviceFormat(0,D3DDEVTYPE_HAL,D3DFMT_X8R8G8B8,D3DUSAGE_DEPTHSTENCIL,D3DRTYPE_SURFACE,format)=D3D_OK
 	End Function