From 756874a4ba0d415b98896943af5aea64f7fbf8c1 Mon Sep 17 00:00:00 2001 From: groogy Date: Mon, 15 Nov 2010 09:15:43 +0000 Subject: [PATCH] Changed INT2FIX to FIX2UINT. That it didn't crash still surprises me. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1646 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-window/window/VideoMode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/ruby/sfml-window/window/VideoMode.cpp b/bindings/ruby/sfml-window/window/VideoMode.cpp index a54c69ff3..00d1e3d7f 100644 --- a/bindings/ruby/sfml-window/window/VideoMode.cpp +++ b/bindings/ruby/sfml-window/window/VideoMode.cpp @@ -138,13 +138,13 @@ static VALUE VideoMode_New( int argc, VALUE *args, VALUE aKlass ) object = new sf::VideoMode(); break; case 2: - object = new sf::VideoMode( INT2FIX( args[0] ), INT2FIX( args[1] ) ); + object = new sf::VideoMode( FIX2UINT( args[0] ), FIX2UINT( args[1] ) ); break; case 3: - object = new sf::VideoMode( INT2FIX( args[0] ), INT2FIX( args[1] ), INT2FIX( args[2] ) ); + object = new sf::VideoMode( FIX2UINT( args[0] ), FIX2UINT( args[1] ),FIX2UINT( args[2] ) ); break; default: - rb_raise( rb_eArgError, "Expected 0 2 or 3 arguments but was given %d", argc ); + rb_raise( rb_eArgError, "Expected 0, 2 or 3 arguments but was given %d", argc ); break; } VALUE rbData = Data_Wrap_Struct( aKlass, 0, VideoMode_Free, object );