Commit b233ca52 authored by saeed's avatar saeed

stn_color is added

parent de1d8f38
......@@ -296,7 +296,7 @@ static void drawonscreen_motion(struct Vis *vis,struct Colort *scolor, int ncolo
}
ximage = XCreateImage(vis->dsp, vis->visual, 24, ZPixmap, 0, dspf->image32, vis->w, vis->h, 32, 0);
XPutImage(vis->dsp, pixmap, vis->gc, ximage, 0, 0, 0, 0, vis->w, vis->h);
XSetForeground(vis->dsp, vis->gc, 0x00bf0000);
XSetForeground(vis->dsp, vis->gc, stn_color);
for (int i=0; i< obsp->npy;++i){
if (obsp->iindex[i] != -1 && obsp->jindex[i] != -1){
if (i != istn){
......@@ -308,7 +308,7 @@ static void drawonscreen_motion(struct Vis *vis,struct Colort *scolor, int ncolo
}
if (obsp->iindex[istn] != -1 && obsp->jindex[istn] != -1){
struct Index index = map(obsp->iindex[istn], obsp->jindex[istn], vis->w, vis->h, NX, NY);
XSetForeground(vis->dsp, vis->gc, 0x00bf0000);
XSetForeground(vis->dsp, vis->gc, stn_color);
XFillArc (vis->dsp, pixmap, vis->gc,index.i - (int)(symb.radius *0.50*increase_radius), vis->h - index.j -1 - (int)(symb.radius *0.50*increase_radius), (int)(symb.radius *increase_radius),(int)(symb.radius * increase_radius), 0, 360 * 64);
XFlush(vis->dsp);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment