Browse Source

Don't expose mac specific display server.

HolonProduction 2 years ago
parent
commit
ddcb2d157d

+ 2 - 0
platform/android/display_server_android.h

@@ -39,6 +39,8 @@ class RenderingDeviceVulkan;
 #endif
 
 class DisplayServerAndroid : public DisplayServer {
+	// No need to register with GDCLASS, it's platform-specific and nothing is added.
+
 	String rendering_driver;
 
 	// https://developer.android.com/reference/android/view/PointerIcon

+ 1 - 1
platform/ios/display_server_ios.h

@@ -55,7 +55,7 @@
 #import <QuartzCore/CAMetalLayer.h>
 
 class DisplayServerIOS : public DisplayServer {
-	GDCLASS(DisplayServerIOS, DisplayServer)
+	// No need to register with GDCLASS, it's platform-specific and nothing is added.
 
 	_THREAD_SAFE_CLASS_
 

+ 1 - 2
platform/linuxbsd/x11/display_server_x11.h

@@ -119,8 +119,7 @@ typedef struct _xrr_monitor_info {
 #undef CursorShape
 
 class DisplayServerX11 : public DisplayServer {
-	//No need to register, it's platform-specific and nothing is added
-	//GDCLASS(DisplayServerX11, DisplayServer)
+	// No need to register with GDCLASS, it's platform-specific and nothing is added.
 
 	_THREAD_SAFE_CLASS_
 

+ 1 - 1
platform/macos/display_server_macos.h

@@ -56,7 +56,7 @@
 #undef CursorShape
 
 class DisplayServerMacOS : public DisplayServer {
-	GDCLASS(DisplayServerMacOS, DisplayServer)
+	// No need to register with GDCLASS, it's platform-specific and nothing is added.
 
 	_THREAD_SAFE_CLASS_
 

+ 2 - 0
platform/web/display_server_web.h

@@ -37,6 +37,8 @@
 #include <emscripten/html5.h>
 
 class DisplayServerWeb : public DisplayServer {
+	// No need to register with GDCLASS, it's platform-specific and nothing is added.
+
 private:
 	struct JSTouchEvent {
 		uint32_t identifier[32] = { 0 };

+ 1 - 2
platform/windows/display_server_windows.h

@@ -280,8 +280,7 @@ typedef struct {
 } ICONDIR, *LPICONDIR;
 
 class DisplayServerWindows : public DisplayServer {
-	//No need to register, it's platform-specific and nothing is added
-	//GDCLASS(DisplayServerWindows, DisplayServer)
+	// No need to register with GDCLASS, it's platform-specific and nothing is added.
 
 	_THREAD_SAFE_CLASS_