From 9b25dc56411206ff7b011e699d6c29a5c7640a8a Mon Sep 17 00:00:00 2001 From: groogy Date: Mon, 6 Dec 2010 08:34:15 +0000 Subject: [PATCH] Forgot to add a negative sign before the one when specifying the amount of arguments SFML::Image#initialize takes. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1751 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-graphics/graphics/Image.cpp | 2 +- bindings/ruby/sfml-graphics/graphics/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/ruby/sfml-graphics/graphics/Image.cpp b/bindings/ruby/sfml-graphics/graphics/Image.cpp index d9ff99c40..15cf74273 100644 --- a/bindings/ruby/sfml-graphics/graphics/Image.cpp +++ b/bindings/ruby/sfml-graphics/graphics/Image.cpp @@ -628,7 +628,7 @@ void Init_Image( void ) rb_define_singleton_method( globalImageClass, "getMaximumSize", Image_GetMaximumSize, 0 ); // Instance methods - rb_define_method( globalImageClass, "initialize", Image_Initialize, 1 ); + rb_define_method( globalImageClass, "initialize", Image_Initialize, -1 ); rb_define_method( globalImageClass, "initialize_copy", Image_InitializeCopy, 1 ); rb_define_method( globalImageClass, "loadFromFile", Image_LoadFromFile, 1 ); rb_define_method( globalImageClass, "loadFromPixels", Image_LoadFromPixels, 3 ); diff --git a/bindings/ruby/sfml-graphics/graphics/main.cpp b/bindings/ruby/sfml-graphics/graphics/main.cpp index 48ccd48ea..28b53ff5a 100644 --- a/bindings/ruby/sfml-graphics/graphics/main.cpp +++ b/bindings/ruby/sfml-graphics/graphics/main.cpp @@ -83,7 +83,7 @@ void Init_graphics( void ) rb_define_const(globalSFMLNamespace, "GraphicsLoaded", Qtrue); CreateBlendEnum(); - + Init_Color(); Init_Rect(); Init_Drawable();