Переглянути джерело

Merge pull request #104889 from MJacred/patch-1

Clarify that `Window.dpi_changed` signal is supported on Linux (Wayland)
Thaddeus Crews 5 місяців тому
батько
коміт
b9b3c3fe14
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      doc/classes/DisplayServer.xml
  2. 1 1
      doc/classes/Window.xml

+ 1 - 1
doc/classes/DisplayServer.xml

@@ -2205,7 +2205,7 @@
 		</constant>
 		<constant name="WINDOW_EVENT_DPI_CHANGE" value="6" enum="WindowEvent">
 			Sent when the window is moved to the display with different DPI, or display DPI is changed.
-			[b]Note:[/b] This flag is implemented only on macOS.
+			[b]Note:[/b] This flag is implemented only on macOS and Linux (Wayland).
 		</constant>
 		<constant name="WINDOW_EVENT_TITLEBAR_CHANGE" value="7" enum="WindowEvent">
 			Sent when the window title bar decoration is changed (e.g. [constant WINDOW_FLAG_EXTEND_TO_TITLE] is set or window entered/exited full screen mode).

+ 1 - 1
doc/classes/Window.xml

@@ -734,7 +734,7 @@
 		<signal name="dpi_changed">
 			<description>
 				Emitted when the [Window]'s DPI changes as a result of OS-level changes (e.g. moving the window from a Retina display to a lower resolution one).
-				[b]Note:[/b] Only implemented on macOS.
+				[b]Note:[/b] Only implemented on macOS and Linux (Wayland).
 			</description>
 		</signal>
 		<signal name="files_dropped">