[haiku-development] Re: SetZoomLimits

  • From: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 4 Sep 2018 18:19:46 +0200

On Tue, Sep 04, 2018 at 11:21:35AM -0400, waddlesplash wrote:

Unless I'm mistaken, BRects take their coordinates from the center of
pixels, not the edges, yes? So a rect of 0, 0, 99, 99 has sides of length
100. The current behavior is thus correct and the old behavior was wrong.

Please read the whole thread.

A SetZoomLimits of 99, 99 ends up with a window of size 100, 100
A setZoomLimits of 100, 100, ends up with a window size of 100, 100.

At least one of these must be wrong.

-- 
Adrien.

Other related posts: