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
343bb7ce
Commit
343bb7ce
authored
Oct 04, 2019
by
saeed
Browse files
a bit cleaning
parent
51a054c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
config.h
View file @
343bb7ce
#define NX (4020)
#define NY (1680)
#define NT (1)
#define NUM_THREADS (1)
#define WIDTH_INIT (1200)
#define HEIGHT_INIT (900)
...
...
@@ -8,10 +7,7 @@
#define WIDTH_TR1 (600)
#define HEIGHT_TR1 (600)
#define INCREASE_RADIUS (1.5)
#define VMAX (1.0)
#define VMIN (0.0)
#define useminmax 0
#define usesrgb 1
#define oceancolor 0xffffffff
#define landcolor 0x91919191
#define stncolor 0x00bf0000
#define stncolor
0x00bf0000
renderer.c
View file @
343bb7ce
...
...
@@ -151,18 +151,6 @@ static int isinsymbol(int i, int j,float radius, int x, int y){
}
static
void
getminmax
(
float
*
min
,
float
*
max
,
struct
dsp_field
*
dspf
){
if
(
useminmax
){
*
min
=
VMIN
;
*
max
=
VMAX
;
}
else
{
*
min
=
minvall
(
dspf
->
SSH
,
dspf
->
nx
*
dspf
->
ny
);
*
max
=
maxvall
(
dspf
->
SSH
,
dspf
->
nx
*
dspf
->
ny
);
}
}
static
void
drawonscreen_expose
(
struct
Vis
*
vis
,
struct
dsp_field
*
dspf
,
struct
Colort
*
scolor
,
int
ncolor
,
struct
obs
*
obsp
,
struct
screen_dim
*
scdim
){
float
minv
=
0
.
0
f
,
maxv
=
0
.
0
f
;
...
...
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