Multiple changes to DisplayServerX11
- Travis: Change x11 to linuxbsd - SCons: Change x11 plataform to linuxbsd - Plugins: Remove ; to avoid fallthrough warning - DisplayServerX11: Implement set_icon - DisplayServerX11: Fix X11 bug when a window was erased from windows map, all the changes from that erased windows are sending to the main window - DisplayServerX11: Reorder create_window commands - DisplayServerX11: Change every Size2 to Size2i and Rect2 to Rect2i where it belongs + More X11 fixes which have been integrated directly back into reduz's original commits while rebasing the branch.
This commit is contained in:
@ -5062,7 +5062,7 @@ void TextEdit::_update_caches() {
|
||||
#ifdef TOOLS_ENABLED
|
||||
cache.line_spacing = get_theme_constant("line_spacing") * EDSCALE;
|
||||
#else
|
||||
cache.line_spacing = get_constant("line_spacing");
|
||||
cache.line_spacing = get_theme_constant("line_spacing");
|
||||
#endif
|
||||
cache.row_height = cache.font->get_height() + cache.line_spacing;
|
||||
cache.tab_icon = get_theme_icon("tab");
|
||||
|
||||
@ -99,7 +99,9 @@ Size2i Window::get_real_size() const {
|
||||
|
||||
void Window::set_max_size(const Size2i &p_max_size) {
|
||||
max_size = p_max_size;
|
||||
DisplayServer::get_singleton()->window_set_min_size(max_size, window_id);
|
||||
if (window_id != DisplayServer::INVALID_WINDOW_ID) {
|
||||
DisplayServer::get_singleton()->window_set_max_size(max_size, window_id);
|
||||
}
|
||||
_update_window_size();
|
||||
}
|
||||
Size2i Window::get_max_size() const {
|
||||
@ -110,7 +112,9 @@ Size2i Window::get_max_size() const {
|
||||
void Window::set_min_size(const Size2i &p_min_size) {
|
||||
|
||||
min_size = p_min_size;
|
||||
DisplayServer::get_singleton()->window_set_max_size(max_size, window_id);
|
||||
if (window_id != DisplayServer::INVALID_WINDOW_ID) {
|
||||
DisplayServer::get_singleton()->window_set_min_size(max_size, window_id);
|
||||
}
|
||||
_update_window_size();
|
||||
}
|
||||
Size2i Window::get_min_size() const {
|
||||
@ -270,8 +274,8 @@ void Window::_clear_window() {
|
||||
|
||||
DisplayServer::get_singleton()->delete_sub_window(window_id);
|
||||
window_id = DisplayServer::INVALID_WINDOW_ID;
|
||||
_update_viewport_size();
|
||||
|
||||
_update_viewport_size();
|
||||
VS::get_singleton()->viewport_set_update_mode(get_viewport_rid(), VS::VIEWPORT_UPDATE_DISABLED);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user