BWindow::ResizeTo seems to have the same rounding issues that
BRect has, but I have no idea how to solve it there. As a
temporary workaround until a solution has been found, avoid
garbaging tooltip frames when FrameResized reports different
dimensions from what they were set to.
if (FRAME_TOOLTIP_P (f))
{
- if (FRAME_PIXEL_WIDTH (f) != width
- || FRAME_PIXEL_HEIGHT (f) != height)
- {
- SET_FRAME_GARBAGED (f);
- BView_draw_lock (FRAME_HAIKU_VIEW (f));
- BView_resize_to (FRAME_HAIKU_VIEW (f), width, height);
- BView_draw_unlock (FRAME_HAIKU_VIEW (f));
- }
-
FRAME_PIXEL_WIDTH (f) = width;
FRAME_PIXEL_HEIGHT (f) = height;