Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
saeed
odb_view
Commits
b233ca52
Commit
b233ca52
authored
Oct 04, 2019
by
saeed
Browse files
stn_color is added
parent
de1d8f38
Changes
1
Hide whitespace changes
Inline
Side-by-side
renderer.c
View file @
b233ca52
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment