emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 22873b5415: Make Haiku stipple display slightly faster


From: Po Lu
Subject: master 22873b5415: Make Haiku stipple display slightly faster
Date: Sun, 15 May 2022 08:45:30 -0400 (EDT)

branch: master
commit 22873b5415fbcc81f2d1e0e69cccd5dbeaac51ee
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Make Haiku stipple display slightly faster
    
    * src/haikuterm.c (haiku_draw_stipple_background): Draw tiled
    bitmap to end of stipple instead of the end of the frame.
---
 src/haikuterm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/haikuterm.c b/src/haikuterm.c
index df0cd82a39..ed8040edc9 100644
--- a/src/haikuterm.c
+++ b/src/haikuterm.c
@@ -1090,8 +1090,7 @@ haiku_draw_stipple_background (struct glyph_string *s, 
struct face *face,
   haiku_clip_to_string (s);
   BView_ClipToRect (view, x, y, width, height);
   BView_DrawBitmapTiled (view, rec->img, 0, 0, -1, -1,
-                        0, 0, FRAME_PIXEL_WIDTH (s->f),
-                        FRAME_PIXEL_HEIGHT (s->f));
+                        0, 0, x + width, y + height);
   BView_EndClip (view);
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]