[shotwell] Do not use functions to convert RGB values
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Do not use functions to convert RGB values
- Date: Sun, 2 Apr 2017 16:57:22 +0000 (UTC)
commit f8ee4c16b894e54af8e8b08d7b124442f7e1cb71
Author: Jens Georg <mail jensge org>
Date: Sun Mar 26 18:50:22 2017 +0200
Do not use functions to convert RGB values
src/ColorTransformation.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/ColorTransformation.vala b/src/ColorTransformation.vala
index d1b3fc5..b934443 100644
--- a/src/ColorTransformation.vala
+++ b/src/ColorTransformation.vala
@@ -961,9 +961,9 @@ public class PixelTransformer {
current_pixel = apply_transformations(current_pixel);
- dest_pixels[i] = current_pixel.quantized_red();
- dest_pixels[i + 1] = current_pixel.quantized_green();
- dest_pixels[i + 2] = current_pixel.quantized_blue();
+ dest_pixels[i] = (uchar) (current_pixel.red * 255.0f);
+ dest_pixels[i + 1] = (uchar) (current_pixel.green * 255.0f);
+ dest_pixels[i + 2] = (uchar) (current_pixel.blue * 255.0f);
}
if ((cancellable != null) && (cancellable.is_cancelled())) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]