diff options
Diffstat (limited to 'samplecode/SampleApp.cpp')
| -rw-r--r-- | samplecode/SampleApp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index 6f0e95842e..6722429618 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -350,7 +350,7 @@ public: // With ten-bit output, we need to manually apply the gamma of the output device // (unless we're in non-gamma correct mode, in which case our data is already // fake-sRGB, like we're expected to put in the 10-bit buffer): - bool doGamma = (fActualColorBits == 30) && SkImageInfoIsGammaCorrect(win->info()); + bool doGamma = (fActualColorBits == 30) && win->info().colorSpace(); SkPaint gammaPaint; gammaPaint.setBlendMode(SkBlendMode::kSrc); |
