fixes for Pandora

This commit is contained in:
Zeno Rogue
2017-03-25 02:10:15 +01:00
parent 9240cc48b3
commit 51f2ff9d4a
3 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -1793,7 +1793,7 @@ namespace svg {
void fixgamma(unsigned int& color) {
unsigned char *c = (unsigned char*) (&color);
for(int i=1; i<4; i++) c[i] = 255 * pow(c[i] / 255.0, gamma);
for(int i=1; i<4; i++) c[i] = 255 * pow(float(c[i] / 255.0), float(gamma));
}
int svgsize;