1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/graphics/timg/files/patch-timg.cc
Vanilla I. Shu 2a16b98a6a Add timg 0.9.5, terminal Image Viewer.
PR:		217963
Submitted by:	udvzsolt@gmail.com
2017-03-21 02:12:49 +00:00

29 lines
1.3 KiB
C++

--- timg.cc.orig 2016-06-27 04:44:39 UTC
+++ timg.cc
@@ -66,9 +66,9 @@ void CopyToCanvas(const Magick::Image &i
if (c.alphaQuantum() >= 255)
continue;
result->SetPixel(x, y,
- ScaleQuantumToChar(c.redQuantum()),
- ScaleQuantumToChar(c.greenQuantum()),
- ScaleQuantumToChar(c.blueQuantum()));
+ MagickCore::ScaleQuantumToChar(c.redQuantum()),
+ MagickCore::ScaleQuantumToChar(c.greenQuantum()),
+ MagickCore::ScaleQuantumToChar(c.blueQuantum()));
}
}
}
@@ -222,9 +222,9 @@ void DisplayScrolling(const Magick::Imag
if (src.alphaQuantum() >= 255)
continue;
RGBCol &dest = fast_image[y * img_width + x];
- dest.r = ScaleQuantumToChar(src.redQuantum());
- dest.g = ScaleQuantumToChar(src.greenQuantum());
- dest.b = ScaleQuantumToChar(src.blueQuantum());
+ dest.r = MagickCore::ScaleQuantumToChar(src.redQuantum());
+ dest.g = MagickCore::ScaleQuantumToChar(src.greenQuantum());
+ dest.b = MagickCore::ScaleQuantumToChar(src.blueQuantum());
}
}