mirror of
https://github.com/nicbarker/clay.git
synced 2025-01-23 18:06:04 +00:00
float cast to appease C++
This commit is contained in:
parent
843b5bfe89
commit
90b4b0de26
8
clay.h
8
clay.h
@ -1952,10 +1952,10 @@ void Clay__SizeContainersAlongAxis(bool xAxis) {
|
|||||||
|
|
||||||
static inline Clay_BoundingBox Clay__BoundingBoxWithRoundedValues(float x, float y, float width, float height) {
|
static inline Clay_BoundingBox Clay__BoundingBoxWithRoundedValues(float x, float y, float width, float height) {
|
||||||
return CLAY__INIT(Clay_BoundingBox) {
|
return CLAY__INIT(Clay_BoundingBox) {
|
||||||
(int32_t)(x + (x > 0 ? 0.5f : -0.5f)),
|
(float)(int32_t)(x + (x > 0 ? 0.5f : -0.5f)),
|
||||||
(int32_t)(y + (y > 0 ? 0.5f : -0.5f)),
|
(float)(int32_t)(y + (y > 0 ? 0.5f : -0.5f)),
|
||||||
(int32_t)(width + (width > 0 ? 0.5f : -0.5f)),
|
(float)(int32_t)(width + (width > 0 ? 0.5f : -0.5f)),
|
||||||
(int32_t)(height + (height > 0 ? 0.5f : -0.5f))
|
(float)(int32_t)(height + (height > 0 ? 0.5f : -0.5f))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user