From d4e60f3a2aad9953f95e120dcb0dde2d4fa78d2d Mon Sep 17 00:00:00 2001 From: groogy Date: Wed, 24 Nov 2010 21:06:54 +0000 Subject: [PATCH] Fixed a bug where Image_LoadFromFile was bound to SFML::Image#loadFromPixels... Didn't I commit this just now? I think my SVN client isn't working properly. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1705 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-graphics/graphics/Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/ruby/sfml-graphics/graphics/Image.cpp b/bindings/ruby/sfml-graphics/graphics/Image.cpp index e17e23c31..9eac25211 100644 --- a/bindings/ruby/sfml-graphics/graphics/Image.cpp +++ b/bindings/ruby/sfml-graphics/graphics/Image.cpp @@ -597,7 +597,7 @@ void Init_Image( void ) // Instance methods rb_define_method( globalImageClass, "loadFromFile", Image_LoadFromFile, 1 ); - rb_define_method( globalImageClass, "loadFromPixels", Image_LoadFromFile, 3 ); + rb_define_method( globalImageClass, "loadFromPixels", Image_LoadFromPixels, 3 ); rb_define_method( globalImageClass, "saveToFile", Image_SaveToFile, 1 ); rb_define_method( globalImageClass, "create", Image_Create, -1 ); rb_define_method( globalImageClass, "createMaskFromColor", Image_CreateMaskFromColor, -1 );