Index: hid_draw_helpers.c =================================================================== --- hid_draw_helpers.c (revision 17239) +++ hid_draw_helpers.c (revision 17240) @@ -84,7 +84,7 @@ /* Optimization: if the polygon has no holes and is smaller the clip_box, it is safe to draw directly */ - if ((clip_box->X1 < pl->xmin) && (clip_box->X2 > pl->xmax) && (clip_box->Y1 < pl->ymin) && (clip_box->Y2 > pl->ymax)) { + if ((clip_box->X1 <= pl->xmin) && (clip_box->X2 >= pl->xmax) && (clip_box->Y1 <= pl->ymin) && (clip_box->Y2 >= pl->ymax)) { fill_contour(gc, pl); return; }