[haiku-development] Re: Negative insets and BScroll{Bar|View}

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 26 Aug 2015 18:08:40 +0200

Am 26/08/2015 um 11:52 schrieb Ingo Weinhold:

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)

For real? :-)
IMO breaking compatibility here is more acceptable than adding such a kludge to the API -- if we'd already hit R1, the situation would look differently.

Bye,
Axel.


Other related posts: