[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: Crosshair color in lesstif Pcb
le jeudi 11 septembre 2008 à 15:13 -0400, DJ Delorie a écrit :
>
> Close - if you want the crosshair to "in general" be a specific color,
> you need to XOR the screen with (crosshair XOR background), not just
> crosshair.
>
>
> _______________________________________________
> geda-user mailing list
> geda-user@xxxxxxxxxxxxxx
> http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
>
Ooops! Sorry... Corrected.
/src/geda/pcb/pcb-20080911cvs.1/src/hid/lesstif$ diff -u main-ori.c
main.c
--- main-ori.c 2008-09-11 20:44:10.000000000 +0200
+++ main.c 2008-09-11 22:03:44.000000000 +0200
@@ -1572,13 +1572,16 @@
static int showing = 0;
static int sx, sy;
static GC xor_gc = 0;
+ Pixel crosshair_color;
if (!crosshair_in_window || !window)
return;
if (xor_gc == 0)
{
+ crosshair_color = lesstif_parse_color (Settings.CrosshairColor) ^
bgcolor;
xor_gc = XCreateGC (display, window, 0, 0);
- XSetFunction (display, xor_gc, GXinvert);
+ XSetFunction (display, xor_gc, GXxor);
+ XSetForeground (display, xor_gc, crosshair_color);
}
if (show == showing)
return;
@@ -3841,4 +3844,3 @@
hid_register_hid (&lesstif_gui);
#include "lesstif_lists.h"
}
-
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user