Browse Source

Allow hiDPI in all demos that support multiple resolutions

This is required to benefit from crisp display on hiDPI monitors.
This also fixes issues related to fullscreen and input handling
when using an hiDPI display on Windows.
Hugo Locurcio 4 years ago
parent
commit
fe6103256a
51 changed files with 51 additions and 0 deletions
  1. 1 0
      2d/finite_state_machine/project.godot
  2. 1 0
      2d/gd_paint/project.godot
  3. 1 0
      2d/hdr/project.godot
  4. 1 0
      2d/hexagonal_map/project.godot
  5. 1 0
      2d/instancing/project.godot
  6. 1 0
      2d/isometric/project.godot
  7. 1 0
      2d/kinematic_character/project.godot
  8. 1 0
      2d/light2d_as_mask/project.godot
  9. 1 0
      2d/lights_and_shadows/project.godot
  10. 1 0
      2d/navigation/project.godot
  11. 1 0
      2d/navigation_astar/project.godot
  12. 1 0
      2d/particles/project.godot
  13. 1 0
      2d/physics_platformer/project.godot
  14. 1 0
      2d/pong/project.godot
  15. 1 0
      2d/role_playing_game/project.godot
  16. 1 0
      2d/screen_space_shaders/project.godot
  17. 1 0
      2d/sprite_shaders/project.godot
  18. 1 0
      2d/tween/project.godot
  19. 1 0
      3d/ik/project.godot
  20. 1 0
      3d/material_testers/project.godot
  21. 1 0
      3d/physics_tests/project.godot
  22. 1 0
      3d/truck_town/project.godot
  23. 1 0
      3d/voxel/project.godot
  24. 1 0
      audio/mic_record/project.godot
  25. 1 0
      gui/drag_and_drop/project.godot
  26. 1 0
      gui/input_mapping/project.godot
  27. 1 0
      gui/regex/project.godot
  28. 1 0
      gui/rich_text_bbcode/project.godot
  29. 1 0
      gui/sdf_font/project.godot
  30. 1 0
      gui/theming_override/project.godot
  31. 1 0
      gui/translation/project.godot
  32. 1 0
      loading/autoload/project.godot
  33. 1 0
      loading/background_load/project.godot
  34. 1 0
      loading/scene_changer/project.godot
  35. 1 0
      loading/threads/project.godot
  36. 1 0
      misc/joypads/project.godot
  37. 1 0
      misc/opensimplexnoise/project.godot
  38. 1 0
      misc/os_test/project.godot
  39. 1 0
      misc/pause/project.godot
  40. 1 0
      misc/window_management/project.godot
  41. 1 0
      mobile/android_iap/project.godot
  42. 1 0
      mono/android_iap/project.godot
  43. 1 0
      mono/pong/project.godot
  44. 1 0
      networking/multiplayer_bomber/project.godot
  45. 1 0
      networking/multiplayer_pong/project.godot
  46. 1 0
      networking/webrtc_minimal/project.godot
  47. 1 0
      networking/webrtc_signaling/project.godot
  48. 1 0
      viewport/3d_in_2d/project.godot
  49. 1 0
      viewport/3d_scaling/project.godot
  50. 1 0
      viewport/screen_capture/project.godot
  51. 1 0
      visual_script/pong/project.godot

+ 1 - 0
2d/finite_state_machine/project.godot

@@ -26,6 +26,7 @@ config/icon="res://icon.png"
 
 window/size/width=1280
 window/size/height=720
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
2d/gd_paint/project.godot

@@ -26,6 +26,7 @@ config/icon="res://icon.png"
 
 window/size/width=1280
 window/size/height=720
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="keep"
 

+ 1 - 0
2d/hdr/project.godot

@@ -28,6 +28,7 @@ run/name=""
 
 window/size/width=1080
 window/size/height=720
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
2d/hexagonal_map/project.godot

@@ -22,6 +22,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
2d/instancing/project.godot

@@ -24,6 +24,7 @@ config/icon="res://icon.png"
 [display]
 
 window/size/width=800
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
2d/isometric/project.godot

@@ -25,6 +25,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
2d/kinematic_character/project.godot

@@ -26,6 +26,7 @@ config/icon="res://icon.png"
 
 window/size/width=530
 window/size/height=495
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 stretch/aspect="keep"

+ 1 - 0
2d/light2d_as_mask/project.godot

@@ -22,6 +22,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
2d/lights_and_shadows/project.godot

@@ -24,6 +24,7 @@ config/icon="res://icon.png"
 [display]
 
 window/size/width=800
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 stretch/aspect="keep"

+ 1 - 0
2d/navigation/project.godot

@@ -25,6 +25,7 @@ config/icon="res://icon.png"
 [display]
 
 window/size/width=800
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 stretch/aspect="keep"

+ 1 - 0
2d/navigation_astar/project.godot

@@ -23,6 +23,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
2d/particles/project.godot

@@ -22,6 +22,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
2d/physics_platformer/project.godot

@@ -64,6 +64,7 @@ gdscript/warnings/unsafe_call_argument=true
 
 window/size/width=800
 window/size/height=480
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="keep"
 

+ 1 - 0
2d/pong/project.godot

@@ -25,6 +25,7 @@ config/icon="res://icon.png"
 
 window/size/width=640
 window/size/height=400
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 stretch_2d=true

+ 1 - 0
2d/role_playing_game/project.godot

@@ -26,6 +26,7 @@ config/icon="res://icon.png"
 
 window/size/width=1280
 window/size/height=720
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
2d/screen_space_shaders/project.godot

@@ -24,6 +24,7 @@ config/icon="res://icon.png"
 [display]
 
 window/size/width=800
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="keep"
 stretch/aspect="keep"

+ 1 - 0
2d/sprite_shaders/project.godot

@@ -23,6 +23,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
2d/tween/project.godot

@@ -28,6 +28,7 @@ gdscript/warnings/return_value_discarded=false
 [display]
 
 window/size/height=768
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 stretch/aspect="keep_width"

+ 1 - 0
3d/ik/project.godot

@@ -24,6 +24,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
3d/material_testers/project.godot

@@ -25,6 +25,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
3d/physics_tests/project.godot

@@ -41,6 +41,7 @@ gdscript/warnings/return_value_discarded=false
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
3d/truck_town/project.godot

@@ -27,6 +27,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 window/height=720

+ 1 - 0
3d/voxel/project.godot

@@ -39,6 +39,7 @@ Settings="*res://settings.gd"
 
 window/size/width=1600
 window/size/height=900
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
audio/mic_record/project.godot

@@ -29,6 +29,7 @@ enable_audio_input=true
 
 window/size/width=640
 window/size/height=480
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
gui/drag_and_drop/project.godot

@@ -25,6 +25,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
gui/input_mapping/project.godot

@@ -28,6 +28,7 @@ config/icon="res://icon.png"
 
 window/size/width=640
 window/size/height=480
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
gui/regex/project.godot

@@ -23,6 +23,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
gui/rich_text_bbcode/project.godot

@@ -22,6 +22,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
gui/sdf_font/project.godot

@@ -24,6 +24,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
gui/theming_override/project.godot

@@ -23,6 +23,7 @@ config/icon="res://icon.png"
 [display]
 
 window/size/height=576
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
gui/translation/project.godot

@@ -23,6 +23,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
loading/autoload/project.godot

@@ -25,6 +25,7 @@ global="res://global.gd"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
loading/background_load/project.godot

@@ -26,6 +26,7 @@ background_load="*res://background_load.tscn"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
loading/scene_changer/project.godot

@@ -25,6 +25,7 @@ gdscript/warnings/return_value_discarded=false
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
loading/threads/project.godot

@@ -21,6 +21,7 @@ run/main_scene="res://thread.tscn"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
misc/joypads/project.godot

@@ -28,6 +28,7 @@ gdscript/warnings/return_value_discarded=false
 
 window/size/width=600
 window/size/height=540
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
misc/opensimplexnoise/project.godot

@@ -23,6 +23,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
misc/os_test/project.godot

@@ -26,6 +26,7 @@ gdscript/warnings/return_value_discarded=false
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
misc/pause/project.godot

@@ -22,6 +22,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
misc/window_management/project.godot

@@ -23,6 +23,7 @@ config/icon="res://icon.png"
 [display]
 
 window/size/width=800
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 window/fullscreen=false

+ 1 - 0
mobile/android_iap/project.godot

@@ -29,6 +29,7 @@ gdscript/warnings/return_value_discarded=false
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
mono/android_iap/project.godot

@@ -25,6 +25,7 @@ gdscript/warnings/return_value_discarded=false
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
mono/pong/project.godot

@@ -25,6 +25,7 @@ config/icon="res://icon.png"
 
 window/size/width=640
 window/size/height=400
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="keep"
 

+ 1 - 0
networking/multiplayer_bomber/project.godot

@@ -33,6 +33,7 @@ gdscript/warnings/return_value_discarded=false
 [display]
 
 window/vsync/use_vsync=false
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
networking/multiplayer_pong/project.godot

@@ -30,6 +30,7 @@ gdscript/warnings/return_value_discarded=false
 
 window/size/width=640
 window/size/height=400
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 stretch_2d=true

+ 1 - 0
networking/webrtc_minimal/project.godot

@@ -24,6 +24,7 @@ Signaling="*res://Signaling.gd"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
networking/webrtc_signaling/project.godot

@@ -30,6 +30,7 @@ gdscript/warnings/return_value_discarded=false
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
viewport/3d_in_2d/project.godot

@@ -22,6 +22,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
viewport/3d_scaling/project.godot

@@ -30,6 +30,7 @@ config/icon="res://icon.png"
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 

+ 1 - 0
viewport/screen_capture/project.godot

@@ -26,6 +26,7 @@ gdscript/warnings/return_value_discarded=false
 
 [display]
 
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="keep"
 

+ 1 - 0
visual_script/pong/project.godot

@@ -25,6 +25,7 @@ config/icon="res://icon.png"
 
 window/size/width=640
 window/size/height=400
+window/dpi/allow_hidpi=true
 window/stretch/mode="2d"
 window/stretch/aspect="expand"
 stretch_2d=true