Browse Source

Fixed test for macos.

Mark Sibly 7 years ago
parent
commit
325aa54679
1 changed files with 10 additions and 3 deletions
  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