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
|
|
@ -3443,7 +3443,7 @@ void DisplayServerX11::cursor_set_custom_image(const Ref<Resource> &p_cursor, Cu
|
|||
cursor_image->pixels = (XcursorPixel *)memalloc(size);
|
||||
|
||||
for (XcursorPixel index = 0; index < image_size; index++) {
|
||||
int row_index = floor(index / texture_size.width);
|
||||
int row_index = std::floor(index / texture_size.width);
|
||||
int column_index = index % int(texture_size.width);
|
||||
|
||||
*(cursor_image->pixels + index) = image->get_pixel(column_index, row_index).to_argb32();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue