mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Overloaded basic math funcs (double and float variants). Use real_t rather than float or double in generic functions (core/math) whenever possible.
Also inlined some more math functions.
This commit is contained in:
parent
d13f2f9e25
commit
6f4f9aa6de
50 changed files with 543 additions and 615 deletions
|
|
@ -826,7 +826,7 @@ void ScriptEditorDebugger::_performance_draw() {
|
|||
Ref<StyleBox> graph_sb = get_stylebox("normal","TextEdit");
|
||||
Ref<Font> graph_font = get_font("font","TextEdit");
|
||||
|
||||
int cols = Math::ceil(Math::sqrt(which.size()));
|
||||
int cols = Math::ceil(Math::sqrt((float)which.size()));
|
||||
int rows = (which.size()+1)/cols;
|
||||
if (which.size()==1)
|
||||
rows=1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue