Commit 343bb7ce authored by saeed's avatar saeed

a bit cleaning

parent 51a054c7
#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
......@@ -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.0f, maxv = 0.0f;
......
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