From 0994de8d23a10e4021413c14a7ff941fcc9effe1 Mon Sep 17 00:00:00 2001 From: groogy Date: Wed, 17 Nov 2010 11:51:02 +0000 Subject: [PATCH] Added so that the Init_Color function is called. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1667 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-graphics/graphics/Color.hpp | 8 ++++---- bindings/ruby/sfml-graphics/graphics/main.cpp | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bindings/ruby/sfml-graphics/graphics/Color.hpp b/bindings/ruby/sfml-graphics/graphics/Color.hpp index 6234561ea..437074036 100644 --- a/bindings/ruby/sfml-graphics/graphics/Color.hpp +++ b/bindings/ruby/sfml-graphics/graphics/Color.hpp @@ -20,12 +20,12 @@ * source distribution. */ -#ifndef SFML_RUBYEXT_CLOCK_HEADER_ -#define SFML_RUBYEXT_CLOCK_HEADER_ +#ifndef SFML_RUBYEXT_COLOR_HEADER_ +#define SFML_RUBYEXT_COLOR_HEADER_ #include "ruby.h" // Ruby initiation function -void Init_Clock( void ); +void Init_Color( void ); -#endif // SFML_RUBYEXT_CLOCK_HEADER_ +#endif // SFML_RUBYEXT_COLOR_HEADER_ diff --git a/bindings/ruby/sfml-graphics/graphics/main.cpp b/bindings/ruby/sfml-graphics/graphics/main.cpp index 75578a961..eb0fa1d9c 100644 --- a/bindings/ruby/sfml-graphics/graphics/main.cpp +++ b/bindings/ruby/sfml-graphics/graphics/main.cpp @@ -21,6 +21,7 @@ */ #include "main.hpp" +#include "Color.hpp" VALUE globalSFMLNamespace; @@ -50,7 +51,7 @@ VALUE RetrieveSFMLClass( const char * aName ) return rb_cvar_get( globalSFMLNamespace, name ); } -void Init_system( void ) +void Init_graphics( void ) { /* SFML namespace which contains the classes of this module. */ globalSFMLNamespace = rb_define_module( "SFML" ); @@ -63,4 +64,6 @@ void Init_system( void ) globalWindowClass = RetrieveSFMLClass( "Window" ); rb_define_const(globalSFMLNamespace, "GraphicsLoaded", Qtrue); + + Init_Color(); }