mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 12:14:44 +00:00
Add new scaling modes for splash screen
Removes the `fullsize` option which is superseded by `stretch_mode`. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
parent
4979d9fc7b
commit
fcc9f5ce39
13 changed files with 167 additions and 60 deletions
|
|
@ -273,9 +273,9 @@ Vector<RenderingServer::FrameProfileArea> RenderingServerDefault::get_frame_prof
|
|||
|
||||
/* TESTING */
|
||||
|
||||
void RenderingServerDefault::set_boot_image(const Ref<Image> &p_image, const Color &p_color, bool p_scale, bool p_use_filter) {
|
||||
void RenderingServerDefault::set_boot_image(const Ref<Image> &p_image, const Color &p_color, RenderingServer::SplashStretchMode p_stretch_mode, bool p_use_filter) {
|
||||
redraw_request();
|
||||
RSG::rasterizer->set_boot_image(p_image, p_color, p_scale, p_use_filter);
|
||||
RSG::rasterizer->set_boot_image(p_image, p_color, p_stretch_mode, p_use_filter);
|
||||
}
|
||||
|
||||
void RenderingServerDefault::set_default_clear_color(const Color &p_color) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue