Subversion Repositories eduke32

Rev

Rev 870 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 870 Rev 877
Line 76... Line 76...
76
int dommxoverlay = 1, beforedrawrooms = 1, indrawroomsandmasks = 0;
76
int dommxoverlay = 1, beforedrawrooms = 1, indrawroomsandmasks = 0;
77
77
78
static int oxdimen = -1, oviewingrange = -1, oxyaspect = -1;
78
static int oxdimen = -1, oviewingrange = -1, oxyaspect = -1;
79
79
80
int curbrightness = 0, gammabrightness = 0;
80
int curbrightness = 0, gammabrightness = 0;
-
 
81
-
 
82
float vid_gamma = DEFAULT_GAMMA;
81
float vid_gamma = 1.0, vid_contrast = 1.0, vid_brightness = 0.0;
83
float vid_contrast = DEFAULT_CONTRAST;
-
 
84
float vid_brightness = DEFAULT_BRIGHTNESS;
82
85
83
//Textured Map variables
86
//Textured Map variables
84
static char globalpolytype;
87
static char globalpolytype;
85
static short *dotp1[MAXYDIM], *dotp2[MAXYDIM];
88
static short *dotp1[MAXYDIM], *dotp2[MAXYDIM];
86
89
Line 9989... Line 9992...
9989
    unsigned int newpalettesum, lastbright;
9992
    unsigned int newpalettesum, lastbright;
9990
9993
9991
    lastbright = curbrightness;
9994
    lastbright = curbrightness;
9992
    if (!(noapply&4))
9995
    if (!(noapply&4))
9993
        curbrightness = min(max((int)dabrightness,0),15);
9996
        curbrightness = min(max((int)dabrightness,0),15);
9994
-
 
-
 
9997
    if (lastbright != (unsigned)curbrightness)
9995
    vid_gamma = 1.0 + ((float)curbrightness / 10.0);
9998
        vid_gamma = 1.0 + ((float)curbrightness / 10.0);
9996
    if (setgamma()) j = curbrightness; else j = 0;
9999
    if (setgamma()) j = curbrightness; else j = 0;
9997
10000
9998
    for (k=i=0;i<256;i++)
10001
    for (k=i=0;i<256;i++)
9999
    {
10002
    {