Loading include/ui/Rect.h +0 −4 Original line number Original line Diff line number Diff line Loading @@ -44,13 +44,9 @@ public: template <typename T> template <typename T> inline Rect(T w, T h) { inline Rect(T w, T h) { if (w > INT32_MAX) { if (w > INT32_MAX) { ALOG(LOG_WARN, "Rect", "Width %u too large for Rect class, clamping", w); w = INT32_MAX; w = INT32_MAX; } } if (h > INT32_MAX) { if (h > INT32_MAX) { ALOG(LOG_WARN, "Rect", "Height %u too large for Rect class, clamping", h); h = INT32_MAX; h = INT32_MAX; } } left = top = 0; left = top = 0; Loading Loading
include/ui/Rect.h +0 −4 Original line number Original line Diff line number Diff line Loading @@ -44,13 +44,9 @@ public: template <typename T> template <typename T> inline Rect(T w, T h) { inline Rect(T w, T h) { if (w > INT32_MAX) { if (w > INT32_MAX) { ALOG(LOG_WARN, "Rect", "Width %u too large for Rect class, clamping", w); w = INT32_MAX; w = INT32_MAX; } } if (h > INT32_MAX) { if (h > INT32_MAX) { ALOG(LOG_WARN, "Rect", "Height %u too large for Rect class, clamping", h); h = INT32_MAX; h = INT32_MAX; } } left = top = 0; left = top = 0; Loading