diff options
| author | Po Lu | 2021-11-24 09:56:29 +0000 |
|---|---|---|
| committer | Po Lu | 2021-11-24 09:56:29 +0000 |
| commit | e754973d4ddf6925b0289ce1f2cbbf415310a5da (patch) | |
| tree | c1c45e19c158a702102403b4fb63178a727b6d82 /src | |
| parent | 7394c0fe3540d96109034495a50e317b1bceb338 (diff) | |
| download | emacs-e754973d4ddf6925b0289ce1f2cbbf415310a5da.tar.gz emacs-e754973d4ddf6925b0289ce1f2cbbf415310a5da.zip | |
Clear past end of frame on Haiku
* src/haiku_support.c (EmacsWindow.FrameResized): Delete
size adjustment.
* src/haikuterm.c (haiku_clear_frame): Clear one pixel
past the end of the frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/haiku_support.cc | 4 | ||||
| -rw-r--r-- | src/haikuterm.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc index 9fb98f70814..5f9fe7e234f 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc | |||
| @@ -664,8 +664,8 @@ public: | |||
| 664 | { | 664 | { |
| 665 | struct haiku_resize_event rq; | 665 | struct haiku_resize_event rq; |
| 666 | rq.window = this; | 666 | rq.window = this; |
| 667 | rq.px_heightf = newHeight + 1.0f; | 667 | rq.px_heightf = newHeight; |
| 668 | rq.px_widthf = newWidth + 1.0f; | 668 | rq.px_widthf = newWidth; |
| 669 | 669 | ||
| 670 | haiku_write (FRAME_RESIZED, &rq); | 670 | haiku_write (FRAME_RESIZED, &rq); |
| 671 | BDirectWindow::FrameResized (newWidth, newHeight); | 671 | BDirectWindow::FrameResized (newWidth, newHeight); |
diff --git a/src/haikuterm.c b/src/haikuterm.c index 3e5b6046f6d..97dbe3c8d38 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c | |||
| @@ -218,11 +218,11 @@ haiku_clear_frame (struct frame *f) | |||
| 218 | block_input (); | 218 | block_input (); |
| 219 | BView_draw_lock (view); | 219 | BView_draw_lock (view); |
| 220 | BView_StartClip (view); | 220 | BView_StartClip (view); |
| 221 | BView_ClipToRect (view, 0, 0, FRAME_PIXEL_WIDTH (f), | 221 | BView_ClipToRect (view, 0, 0, FRAME_PIXEL_WIDTH (f) + 1, |
| 222 | FRAME_PIXEL_HEIGHT (f)); | 222 | FRAME_PIXEL_HEIGHT (f) + 1); |
| 223 | BView_SetHighColor (view, FRAME_BACKGROUND_PIXEL (f)); | 223 | BView_SetHighColor (view, FRAME_BACKGROUND_PIXEL (f)); |
| 224 | BView_FillRectangle (view, 0, 0, FRAME_PIXEL_WIDTH (f), | 224 | BView_FillRectangle (view, 0, 0, FRAME_PIXEL_WIDTH (f) + 1, |
| 225 | FRAME_PIXEL_HEIGHT (f)); | 225 | FRAME_PIXEL_HEIGHT (f) + 1); |
| 226 | BView_EndClip (view); | 226 | BView_EndClip (view); |
| 227 | BView_draw_unlock (view); | 227 | BView_draw_unlock (view); |
| 228 | unblock_input (); | 228 | unblock_input (); |