From 6f434e50413db23eea2963ff4c78e2d8691e0dd5 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 6 Feb 2000 15:05:46 +0000 Subject: [PATCH] Changed static_cast syntax not recogised by all compilers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/image.cpp b/src/common/image.cpp index f73c76bfae..cbbf97b0bc 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -2846,7 +2846,7 @@ wxImage wxImage::Rotate(double angle, const wxPoint & centre_of_rotation, bool i for (int i = 0; i < 3; i++) // repeat calculation for R, G, and B { result_data[y][x].rgb[i] = - static_cast ( (w1 * v1.rgb[i] + w2 * v2.rgb[i] + + (unsigned char) ( (w1 * v1.rgb[i] + w2 * v2.rgb[i] + w3 * v3.rgb[i] + w4 * v4.rgb[i]) / (w1 + w2 + w3 + w4) ); } -- 2.47.2