vte r2118 - in trunk: . src



Author: behdad
Date: Tue Oct 14 20:39:44 2008
New Revision: 2118
URL: http://svn.gnome.org/viewvc/vte?rev=2118&view=rev

Log:
2008-10-14  Behdad Esfahbod  <behdad gnome org>

        * src/vte.c (vte_terminal_paint_cursor):
        Supposedly handle reverse video during cursor drawing.



Modified:
   trunk/ChangeLog
   trunk/src/vte.c

Modified: trunk/src/vte.c
==============================================================================
--- trunk/src/vte.c	(original)
+++ trunk/src/vte.c	Tue Oct 14 20:39:44 2008
@@ -10328,7 +10328,7 @@
 	int row, drow, col;
 	long width, height, delta, cursor_width;
 	int fore, back, x, y;
-	gboolean blink, selected, focus;
+	gboolean blink, selected, focus, reverse;
 
 	if (!terminal->pvt->cursor_visible)
 		return;
@@ -10346,7 +10346,8 @@
 		return;
 
 	focus = GTK_WIDGET_HAS_FOCUS(terminal);
-	blink = terminal->pvt->cursor_blink_state ^ terminal->pvt->screen->reverse_mode;
+	blink = terminal->pvt->cursor_blink_state;
+	reverse = terminal->pvt->screen->reverse_mode;
 
 	if (focus && !blink)
 		return;
@@ -10374,7 +10375,7 @@
 	selected = vte_cell_is_selected(terminal, col, drow, NULL);
 
 	vte_terminal_determine_colors(terminal, cell,
-			TRUE^selected, selected, TRUE,
+			TRUE^(reverse|selected), selected, TRUE,
 			&fore, &back);
 
 	x = item.x + VTE_PAD_WIDTH;



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