mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Prevent windows from having a size greater than device limit
This commit is contained in:
parent
e7a0a97c0b
commit
f5a808192b
17 changed files with 69 additions and 0 deletions
|
@ -328,6 +328,14 @@ bool RenderingServerDefault::is_low_end() const {
|
|||
return RendererCompositor::is_low_end();
|
||||
}
|
||||
|
||||
Size2i RenderingServerDefault::get_maximum_viewport_size() const {
|
||||
if (RSG::utilities) {
|
||||
return RSG::utilities->get_maximum_viewport_size();
|
||||
} else {
|
||||
return Size2i();
|
||||
}
|
||||
}
|
||||
|
||||
void RenderingServerDefault::_thread_exit() {
|
||||
exit.set();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue