* src/haiku_support.cc (EmacsWindow.FrameResized): Add 1 to
pixel widths.
* src/haikuterm.c (haiku_read_socket): Use `lrint' to round
widths.
{
struct haiku_resize_event rq;
rq.window = this;
- rq.px_heightf = newHeight;
- rq.px_widthf = newWidth;
+ rq.px_heightf = newHeight + 1.0f;
+ rq.px_widthf = newWidth + 1.0f;
haiku_write (FRAME_RESIZED, &rq);
BDirectWindow::FrameResized (newWidth, newHeight);
if (!f)
continue;
- int width = (int) b->px_widthf;
- int height = (int) b->px_heightf;
+ int width = lrint (b->px_widthf);
+ int height = lrint (b->px_heightf);
BView_draw_lock (FRAME_HAIKU_VIEW (f));
BView_resize_to (FRAME_HAIKU_VIEW (f), width, height);