2
0
Brucey 5 жил өмнө
parent
commit
ff3a5f9350

+ 2 - 2
d3d9odd2d.mod/d3d9odd2d.bmx

@@ -92,8 +92,8 @@ Type TD3D9Odd2DDriver Extends TOdd2DDriver
 		If g Return TMax2DGraphics.Create( g,Self )
 	End Method
 	
-	Method CreateGraphics:TGraphics( width:Int, height:Int ,depth:Int, hertz:Int, flags:Int )
-		Local g:TD3D9Graphics=D3D9GraphicsDriver().CreateGraphics( width,height,depth,hertz,flags )
+	Method CreateGraphics:TGraphics( width:Int, height:Int ,depth:Int, hertz:Int, flags:Int, x:Int, y:Int )
+		Local g:TD3D9Graphics=D3D9GraphicsDriver().CreateGraphics( width,height,depth,hertz,flags,x,y )
 		If g Return TMax2DGraphics.Create( g,Self )
 	End Method
 	

+ 1 - 1
examples/odd2dtest.bmx

@@ -4,7 +4,7 @@ Framework ODD.GLOdd2D
 ?Win32
 Import ODD.D3D9Odd2D
 ?
-Import brl.random
+Import brl.RandomDefault
 
 SetGraphicsDriver GLOdd2DDriver()
 'Uncomment a driver to try it (Windows only)

+ 2 - 2
glodd2d.mod/glodd2d.bmx

@@ -82,8 +82,8 @@ Type TGLOdd2DDriver Extends TOdd2DDriver
 		If g Return TMax2DGraphics.Create( g,Self )
 	End Method
 	
-	Method CreateGraphics:TGraphics( width:Int, height:Int ,depth:Int, hertz:Int, flags:Int )
-		Local g:TGLGraphics=GLGraphicsDriver().CreateGraphics( width,height,depth,hertz,flags )
+	Method CreateGraphics:TGraphics( width:Int, height:Int ,depth:Int, hertz:Int, flags:Int, x:Int, y:Int )
+		Local g:TGLGraphics=GLGraphicsDriver().CreateGraphics( width,height,depth,hertz,flags,x,y )
 		If g Return TMax2DGraphics.Create( g,Self )
 	End Method