mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
This commit is contained in:
parent
c5c1cd4440
commit
ad40939b6f
101 changed files with 414 additions and 498 deletions
|
|
@ -89,8 +89,8 @@ Error ImageLoaderSVG::create_image_from_utf8_buffer(Ref<Image> p_image, const ui
|
|||
float fw, fh;
|
||||
picture->size(&fw, &fh);
|
||||
|
||||
uint32_t width = MAX(1, round(fw * p_scale));
|
||||
uint32_t height = MAX(1, round(fh * p_scale));
|
||||
uint32_t width = MAX(1, std::round(fw * p_scale));
|
||||
uint32_t height = MAX(1, std::round(fh * p_scale));
|
||||
|
||||
const uint32_t max_dimension = 16384;
|
||||
if (width > max_dimension || height > max_dimension) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue