[haiku-development] Re: Negative insets and BScroll{Bar|View}
- From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Wed, 26 Aug 2015 10:01:18 +0000
Or use something like this to avoid breaking binary compatibility:
#define B_DEFINE_NEGATIVE_INSET(x) ((x) - 1000)
#define B_IS_NEGATIVE_INSET(x) ((x) < -1000)
#define B_GET_NEGATIVE_INSET(x) ((x) + 1000)
It is also worth noting that the inset values are stored/passed as floats, and
we get complaints from the PVS checks that comparing constants with floats is
not a good idea.
If we change the API, it would be nice to also fix this.
--
Adrien.
Other related posts: