]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed static_cast syntax not recogised by all compilers
authorJulian Smart <julian@anthemion.co.uk>
Sun, 6 Feb 2000 15:05:46 +0000 (15:05 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 6 Feb 2000 15:05:46 +0000 (15:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/image.cpp

index f73c76bfaef73f16552839f2f291452eb220da63..cbbf97b0bc2b2f1ad4d4532d978569b5b14a65af 100644 (file)
@@ -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] =
                            for (int i = 0; i < 3; i++)     // repeat calculation for R, G, and B
                        {
                                result_data[y][x].rgb[i] =
-                               static_cast<unsigned char> ( (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) );
                            }
                                                                 w3 * v3.rgb[i] + w4 * v4.rgb[i]) /
                                                             (w1 + w2 + w3 + w4) );
                            }