|
Zdenek Dohnal |
c3be6e |
diff -up vim80/src/gui_gtk_x11.c.gtk3-render vim80/src/gui_gtk_x11.c
|
|
Zdenek Dohnal |
c3be6e |
--- vim80/src/gui_gtk_x11.c.gtk3-render 2017-02-22 10:38:37.935193240 +0100
|
|
Zdenek Dohnal |
c3be6e |
+++ vim80/src/gui_gtk_x11.c 2017-02-22 10:53:22.847435530 +0100
|
|
Zdenek Dohnal |
c3be6e |
@@ -688,8 +688,13 @@ draw_event(GtkWidget *widget UNUSED,
|
|
Zdenek Dohnal |
c3be6e |
{
|
|
Zdenek Dohnal |
c3be6e |
const cairo_rectangle_t rect = list->rectangles[i];
|
|
Zdenek Dohnal |
c3be6e |
|
|
Zdenek Dohnal |
c3be6e |
- gui_mch_clear_block(Y_2_ROW(rect.y), 1,
|
|
Zdenek Dohnal |
c3be6e |
- Y_2_ROW(rect.y + rect.height - 1), Columns);
|
|
Zdenek Dohnal |
c3be6e |
+ gui_mch_clear_block(Y_2_ROW((int)rect.y), 0,
|
|
Zdenek Dohnal |
c3be6e |
+ Y_2_ROW((int)(rect.y + rect.height)) - 1, Columns - 1);
|
|
Zdenek Dohnal |
c3be6e |
+ }
|
|
Zdenek Dohnal |
c3be6e |
+
|
|
Zdenek Dohnal |
c3be6e |
+ for (i = 0; i < list->num_rectangles; i++)
|
|
Zdenek Dohnal |
c3be6e |
+ {
|
|
Zdenek Dohnal |
c3be6e |
+ const cairo_rectangle_t rect = list->rectangles[i];
|
|
Zdenek Dohnal |
c3be6e |
|
|
Zdenek Dohnal |
c3be6e |
if (blink_mode)
|
|
Zdenek Dohnal |
c3be6e |
gui_gtk3_redraw(rect.x, rect.y, rect.width, rect.height);
|
|
Zdenek Dohnal |
c3be6e |
@@ -6723,6 +6728,11 @@ gui_mch_clear_block(int row1, int col1,
|
|
Zdenek Dohnal |
c3be6e |
color.pixel = gui.back_pixel;
|
|
Zdenek Dohnal |
c3be6e |
#endif
|
|
Zdenek Dohnal |
c3be6e |
|
|
Zdenek Dohnal |
c3be6e |
+ col1 = check_col(col1);
|
|
Zdenek Dohnal |
c3be6e |
+ col2 = check_col(col2);
|
|
Zdenek Dohnal |
c3be6e |
+ row1 = check_row(row1);
|
|
Zdenek Dohnal |
c3be6e |
+ row2 = check_row(row2);
|
|
Zdenek Dohnal |
c3be6e |
+
|
|
Zdenek Dohnal |
c3be6e |
#if GTK_CHECK_VERSION(3,0,0)
|
|
Zdenek Dohnal |
c3be6e |
{
|
|
Zdenek Dohnal |
c3be6e |
/* Add one pixel to the far right column in case a double-stroked
|