{
struct haiku_resize_event rq;
rq.window = this;
- rq.px_heightf = newHeight + 1.0f;
- rq.px_widthf = newWidth + 1.0f;
+ rq.px_heightf = newHeight;
+ rq.px_widthf = newWidth;
haiku_write (FRAME_RESIZED, &rq);
BDirectWindow::FrameResized (newWidth, newHeight);
block_input ();
BView_draw_lock (view);
BView_StartClip (view);
- BView_ClipToRect (view, 0, 0, FRAME_PIXEL_WIDTH (f),
- FRAME_PIXEL_HEIGHT (f));
+ BView_ClipToRect (view, 0, 0, FRAME_PIXEL_WIDTH (f) + 1,
+ FRAME_PIXEL_HEIGHT (f) + 1);
BView_SetHighColor (view, FRAME_BACKGROUND_PIXEL (f));
- BView_FillRectangle (view, 0, 0, FRAME_PIXEL_WIDTH (f),
- FRAME_PIXEL_HEIGHT (f));
+ BView_FillRectangle (view, 0, 0, FRAME_PIXEL_WIDTH (f) + 1,
+ FRAME_PIXEL_HEIGHT (f) + 1);
BView_EndClip (view);
BView_draw_unlock (view);
unblock_input ();