spice-gtk/0004-mono-cursor-increase-contrast-better-looking-putty-c.patch

43 lines
1.5 KiB
Diff

From b1e16a263d8f41a11b143fe15012d37c0957fe9f Mon Sep 17 00:00:00 2001
From: Alon Levy <alevy@redhat.com>
Date: Mon, 23 Sep 2013 16:09:32 +0300
Subject: [PATCH] mono cursor: increase contrast, better looking putty cursor
(rhbz 998529)
Signed-off-by: Alon Levy <alevy@redhat.com>
---
gtk/channel-cursor.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/gtk/channel-cursor.c b/gtk/channel-cursor.c
index bbfb3c9..d1d2c34 100644
--- a/gtk/channel-cursor.c
+++ b/gtk/channel-cursor.c
@@ -269,15 +269,15 @@ static void mono_cursor(display_cursor *cursor, const guint8 *data)
* the same contrast.
*/
if ((x ^ y) & 1) {
- dest[0] = 0x30;
- dest[1] = 0x30;
- dest[2] = 0x30;
- dest[3] = 0xc0;
+ dest[0] = 0xff;
+ dest[1] = 0xff;
+ dest[2] = 0xff;
+ dest[3] = 0xff;
} else {
- dest[0] = 0x50;
- dest[1] = 0x50;
- dest[2] = 0x50;
- dest[3] = 0x30;
+ dest[0] = 0x00;
+ dest[1] = 0x00;
+ dest[2] = 0x00;
+ dest[3] = 0x00;
}
} else {
/* unchanged -> transparent */
--
1.8.3.1