Move DisplayServer enums and typedefs to DisplayServerEnums
This will allow decoupling `display_server.h` from a number of headers in the codebase which only require those enums and not all the DisplayServer API.
This commit is contained in:
@@ -237,7 +237,7 @@ void WindowWrapper::restore_window_from_saved_position(const Rect2 p_window_rect
|
||||
int screen = p_screen;
|
||||
Rect2 restored_screen_rect = p_screen_rect;
|
||||
|
||||
if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_SELF_FITTING_WINDOWS)) {
|
||||
if (DisplayServer::get_singleton()->has_feature(DisplayServerEnums::FEATURE_SELF_FITTING_WINDOWS)) {
|
||||
window_rect = Rect2i();
|
||||
restored_screen_rect = Rect2i();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user