diff --git a/bindings/ruby/sfml-graphics/graphics/Color.hpp b/bindings/ruby/sfml-graphics/graphics/Color.hpp index 6234561e..43707403 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 75578a96..eb0fa1d9 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(); }