emacs-diffs
[Top][All Lists]
Advanced

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

master cbe10f3753: Remove some more useless clipping stack calls on Haik


From: Po Lu
Subject: master cbe10f3753: Remove some more useless clipping stack calls on Haiku
Date: Thu, 6 Jan 2022 07:08:47 -0500 (EST)

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

    Remove some more useless clipping stack calls on Haiku
    
    * src/haikuterm.c (haiku_draw_box_rect):
    (haiku_draw_relief_rect):
    (haiku_draw_text_decoration): Get rid of calls to
    BView_StartClip and BView_EndClip.
---
 src/haikuterm.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/haikuterm.c b/src/haikuterm.c
index 928b571855..2239770de9 100644
--- a/src/haikuterm.c
+++ b/src/haikuterm.c
@@ -428,8 +428,6 @@ haiku_draw_box_rect (struct glyph_string *s,
   void *view = FRAME_HAIKU_VIEW (s->f);
   struct face *face = s->face;
 
-  BView_StartClip (view);
-  haiku_clip_to_string (s);
   BView_SetHighColor (view, face->box_color);
   if (clip_rect)
     BView_ClipToRect (view, clip_rect->x, clip_rect->y, clip_rect->width,
@@ -443,7 +441,6 @@ haiku_draw_box_rect (struct glyph_string *s,
   if (right_p)
     BView_FillRectangle (view, right_x - vwidth + 1,
                         top_y, vwidth, bottom_y - top_y + 1);
-  BView_EndClip (view);
 }
 
 static void
@@ -484,8 +481,6 @@ haiku_draw_relief_rect (struct glyph_string *s,
                                 &color_corner);
 
   void *view = FRAME_HAIKU_VIEW (s->f);
-  BView_StartClip (view);
-  haiku_clip_to_string (s);
   BView_SetHighColor (view, raised_p ? color_white : color_black);
   if (clip_rect)
     BView_ClipToRect (view, clip_rect->x, clip_rect->y, clip_rect->width,
@@ -548,8 +543,6 @@ haiku_draw_relief_rect (struct glyph_string *s,
       if (right_p && bot_p)
        BView_FillRectangle (view, right_x, bottom_y, 1, 1);
     }
-
-  BView_EndClip (view);
 }
 
 static void
@@ -598,8 +591,6 @@ haiku_draw_text_decoration (struct glyph_string *s, struct 
face *face,
 
   void *view = FRAME_HAIKU_VIEW (s->f);
   BView_draw_lock (view);
-  BView_StartClip (view);
-  haiku_clip_to_string (s);
 
   if (face->underline)
     {
@@ -734,7 +725,6 @@ haiku_draw_text_decoration (struct glyph_string *s, struct 
face *face,
       BView_FillRectangle (view, s->x, glyph_y + dy, s->width, h);
     }
 
-  BView_EndClip (view);
   BView_draw_unlock (view);
 }
 



reply via email to

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