On Fri, 2002-05-24 at 11:43, Sean 'Shaleh' Perry wrote:
> in updateAvailableArea() in Screen.cc add the following line right after the
> call to setPos and setSize.
>
> fprintf(stderr, "(%d, %d), width: %d, height: %d\n", usableArea.x(),
> usableArea.y(), usableArea.width(), usableArea.height());
>
> that will print out the new screen size and where its origin is. See if it
> looks right to you.
Ok, here's what I'm making out:
(the first set of coords is the origin/offset, the second set is
width/height of th available area)
*** with border=1, toolbar top-center and slit bottom-right:
available area= (0,19), (1280, 975)
the 19 is correct - my toolbar is 19px high, including a 1px border
(so, 17px if there were no border).
the 975 is for some reason a couple of px out - that leaves 30px at the
bottom ( 1024 - (975+19) ), but my slit is only 28px. It should be 977
to fit snug.
*** with border=4, layout same as before:
available area= (0,19), (1280,969)
for some reason the border isn't taken into account - it should be
(0,25) with my config and border=4.
the 969 height would be correct for a slit height of 30 if the top
offset was (0,25) instead of (0,19), altho still the 2px out as -
except that the slit now has a height of 34px, which makes it all wrong.
A bit of detail in this shot:
http://waughconsult.co.nz/stuff/bb_measurements.png
*** so, with border=4 the available area *SHOULD* be: (0,25), (1280,965)
NOT (0,19), (1280,969)
(I tried border=10, and it was the same story)
Hope this helps, if you need any more detail let me know.
Matt.