Sfoglia il codice sorgente

Fixed backward compatibility for screen modes (#481)

Maurice Doison 3 anni fa
parent
commit
cf18c6cf86
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      libs/sdl/sdl/Sdl.hx

+ 2 - 0
libs/sdl/sdl/Sdl.hx

@@ -183,6 +183,7 @@ class Sdl {
 		return false;
 	}
 
+	@:hlNative("?sdl", "get_display_modes")
 	static function get_display_modes(displayId : Int) : hl.NativeArray<Dynamic> {
 		return null;
 	}
@@ -198,6 +199,7 @@ class Sdl {
 		return null;
 	}
 
+	@:hlNative("?sdl", "get_displays")
 	static function get_displays() : hl.NativeArray<Dynamic> {
 		return null;
 	}