src/video/SDL_gamma.c
branchSDL-1.3
changeset 1695 7179cb72dbba
parent 1672 8e754b82cecc
child 1733 0b1070f2f94d
equal deleted inserted replaced
1694:7b19e09f5481 1695:7179cb72dbba
    49             ramp[i] = 0;
    49             ramp[i] = 0;
    50         }
    50         }
    51         return;
    51         return;
    52     } else
    52     } else
    53         /* 1.0 gamma is identity */
    53         /* 1.0 gamma is identity */
    54     if (gamma >= 1.0f) {
    54     if (gamma == 1.0f) {
    55         for (i = 0; i < 256; ++i) {
    55         for (i = 0; i < 256; ++i) {
    56             ramp[i] = (i << 8) | i;
    56             ramp[i] = (i << 8) | i;
    57         }
    57         }
    58         return;
    58         return;
    59     } else
    59     } else