[haiku-development] Re: SetZoomLimits
- From: looncraz <looncraz@xxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Mon, 3 Sep 2018 11:55:51 -0500
On 9/3/2018 09:59, Sean Healy wrote:
I installed hrev52302 on Friday (over hrev51446 from Sep 2017), and a
regression test on one of my personal projects is now failing. Simplified
version follows:
window->SetZoomLimits(100,100);
window->Zoom();
bounds = window->Bounds();
if (bounds->Width() == 100 && bounds->Height() == 100) {
// etc.
The bounds are 0,0,99,99 but they used to be 0,0,100,100.
I tried it with 101,101, and it works as expected.
A rect of 0, 0, 99, 99 should have a width and height of 100.
I'd also expect SetZoomLimits(100, 100) to result in a bounds of 0, 0,
99, 99 as 0, 0, 100, 100 should have a width and height of 101.
So, to me at least, it appears that what was previously a bug has been
fixed.
--The loon
Other related posts: