瀏覽代碼

Added display to desktop methods.

Brucey 3 年之前
父節點
當前提交
827eca0822
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      sdlsystem.mod/sdlsystem.bmx

+ 8 - 8
sdlsystem.mod/sdlsystem.bmx

@@ -180,20 +180,20 @@ Type TSDLSystemDriver Extends TSystemDriver
 		End If
 		End If
 	End Method
 	End Method
 
 
-	Method DesktopWidth:Int() Override
-		Return bmx_SDL_GetDisplayWidth(0)
+	Method DesktopWidth:Int(display:Int) Override
+		Return bmx_SDL_GetDisplayWidth(display)
 	End Method
 	End Method
 	
 	
-	Method DesktopHeight:Int() Override
-		Return bmx_SDL_GetDisplayHeight(0)
+	Method DesktopHeight:Int(display:Int) Override
+		Return bmx_SDL_GetDisplayHeight(display)
 	End Method
 	End Method
 	
 	
-	Method DesktopDepth:Int() Override
-		Return bmx_SDL_GetDisplayDepth(0)
+	Method DesktopDepth:Int(display:Int) Override
+		Return bmx_SDL_GetDisplayDepth(display)
 	End Method
 	End Method
 	
 	
-	Method DesktopHertz:Int() Override
-		Return bmx_SDL_GetDisplayhertz(0)
+	Method DesktopHertz:Int(display:Int) Override
+		Return bmx_SDL_GetDisplayhertz(display)
 	End Method
 	End Method
 
 
 	Function _eventFilter:Int(driver:TSDLSystemDriver, event:Int) { nomangle }
 	Function _eventFilter:Int(driver:TSDLSystemDriver, event:Int) { nomangle }