Skip to content

Commit

Permalink
ADL: Fix compilation for openpandora
Browse files Browse the repository at this point in the history
  • Loading branch information
waltervn committed Aug 12, 2019
1 parent 32824ea commit 2d76357
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engines/adl/display_a2.cpp
Expand Up @@ -277,9 +277,9 @@ class PixelWriterColorNTSC : public PixelWriter<ColorType, PixelWriterColorNTSC<
const double g64 = y + (-0.272 * i) + (-0.647 * q);
const double b64 = y + (-1.105 * i) + (1.702 * q);

uint8 r = CLIP(r64, 0.0, 1.0) * 255;
uint8 g = CLIP(g64, 0.0, 1.0) * 255;
uint8 b = CLIP(b64, 0.0, 1.0) * 255;
uint8 r = CLIP<double>(r64, 0.0, 1.0) * 255;
uint8 g = CLIP<double>(g64, 0.0, 1.0) * 255;
uint8 b = CLIP<double>(b64, 0.0, 1.0) * 255;

#ifdef NTSC_REMOVE_WHITE_RINGING
if ((s & 0xf) == 15) {
Expand Down Expand Up @@ -334,7 +334,7 @@ class PixelWriterMonoNTSC : public PixelWriter<ColorType, PixelWriterMonoNTSC<Co
}
}

const uint8 brightness = CLIP(y, 0.0, 1.0) * 255;
const uint8 brightness = CLIP<double>(y, 0.0, 1.0) * 255;
_colors[s] = this->_format.RGBToColor(brightness, brightness, brightness);
}
}
Expand Down

0 comments on commit 2d76357

Please sign in to comment.