From 8651a38e1403ffc599c853b9a3ee4e40b7ef7072 Mon Sep 17 00:00:00 2001 From: groogy Date: Tue, 15 Mar 2011 22:28:34 +0000 Subject: [PATCH] Fixed a little copy-paste error on my behalf. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1806 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-graphics/graphics/Color.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bindings/ruby/sfml-graphics/graphics/Color.cpp b/bindings/ruby/sfml-graphics/graphics/Color.cpp index 1bc659fce..d14e1656a 100644 --- a/bindings/ruby/sfml-graphics/graphics/Color.cpp +++ b/bindings/ruby/sfml-graphics/graphics/Color.cpp @@ -135,9 +135,9 @@ static VALUE Color_Add( VALUE self, VALUE aRightOperand ) // Do calculation unsigned int newR = MIN( leftR + rightR, 255 ); - unsigned int newG = MIN( leftR + rightG, 255 ); - unsigned int newB = MIN( leftR + rightB, 255 ); - unsigned int newA = MIN( leftR + rightA, 255 ); + unsigned int newG = MIN( leftG + rightG, 255 ); + unsigned int newB = MIN( leftB + rightB, 255 ); + unsigned int newA = MIN( leftA + rightA, 255 ); return rb_funcall( globalColorClass, rb_intern( "new" ), 4, newR, newG, newB, newA ); } @@ -162,10 +162,10 @@ static VALUE Color_Multiply( VALUE self, VALUE aRightOperand ) unsigned int rightA = FIX2INT( Color_GetA( right ) ); // Do calculation - unsigned int newR = ( leftR * rightR ) / 255; - unsigned int newG = ( leftR * rightG ) / 255; - unsigned int newB = ( leftR * rightB ) / 255; - unsigned int newA = ( leftR * rightA ) / 255; + unsigned int newR = leftR * rightR / 255; + unsigned int newG = leftG * rightG / 255; + unsigned int newB = leftB * rightB / 255; + unsigned int newA = leftA * rightA / 255; return rb_funcall( globalColorClass, rb_intern( "new" ), 4, newR, newG, newB, newA ); }