Explorar o código

Fixed test for macos.

Mark Sibly %!s(int64=7) %!d(string=hai) anos
pai
achega
325aa54679
Modificáronse 1 ficheiros con 10 adicións e 3 borrados
  1. 10 3
      modules/mojo/tests/resizewindow.monkey2

+ 10 - 3
modules/mojo/tests/resizewindow.monkey2

@@ -3,17 +3,22 @@ Namespace myapp
 
 #Import "<std>"
 #Import "<mojo>"
-#Import "<windows.h>"
 
 Using std..
 Using mojo..
 
+#If __TARGET__="windows"
+
+#Import "<windows.h>"
+
 Extern
 
 Function SetProcessDPIAware:Int()
 
 Public
 
+#Endif
+
 Class MyWindow Extends Window
 	
 	Field _ticks:=0
@@ -72,9 +77,11 @@ Class MyWindow Extends Window
 End
 
 Function Main()
-	
-	Print "DPI="+SetProcessDPIAware()
 
+#If __TARGET__="windows"
+	SetProcessDPIAware()
+#Endif
+	
 	New AppInstance
 	
 	New MyWindow