Lines 1-28
Link Here
|
1 |
--- timg.cc.orig 2020-04-30 05:40:03 UTC |
|
|
2 |
+++ timg.cc |
3 |
@@ -66,9 +66,9 @@ void CopyToCanvas(const Magick::Image &img, TerminalCa |
4 |
if (c.alphaQuantum() >= 255) |
5 |
continue; |
6 |
result->SetPixel(x, y, |
7 |
- ScaleQuantumToChar(c.redQuantum()), |
8 |
- ScaleQuantumToChar(c.greenQuantum()), |
9 |
- ScaleQuantumToChar(c.blueQuantum())); |
10 |
+ MagickCore::ScaleQuantumToChar(c.redQuantum()), |
11 |
+ MagickCore::ScaleQuantumToChar(c.greenQuantum()), |
12 |
+ MagickCore::ScaleQuantumToChar(c.blueQuantum())); |
13 |
} |
14 |
} |
15 |
} |
16 |
@@ -271,9 +271,9 @@ void DisplayScrolling(const Magick::Image &img, int sc |
17 |
if (src.alphaQuantum() >= 255) |
18 |
continue; |
19 |
RGBCol &dest = fast_image[y * img_width + x]; |
20 |
- dest.r = ScaleQuantumToChar(src.redQuantum()); |
21 |
- dest.g = ScaleQuantumToChar(src.greenQuantum()); |
22 |
- dest.b = ScaleQuantumToChar(src.blueQuantum()); |
23 |
+ dest.r = MagickCore::ScaleQuantumToChar(src.redQuantum()); |
24 |
+ dest.g = MagickCore::ScaleQuantumToChar(src.greenQuantum()); |
25 |
+ dest.b = MagickCore::ScaleQuantumToChar(src.blueQuantum()); |
26 |
} |
27 |
} |
28 |
|