From 86ec781e816586eefff04d06f50e67b6f74b4797 Mon Sep 17 00:00:00 2001 From: groogy Date: Sun, 28 Nov 2010 01:55:19 +0000 Subject: [PATCH] Had bound SFML::VideoMode height to width. Fixed now git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1723 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-window/window/VideoMode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/ruby/sfml-window/window/VideoMode.cpp b/bindings/ruby/sfml-window/window/VideoMode.cpp index a39a767dd..b20c4f82b 100644 --- a/bindings/ruby/sfml-window/window/VideoMode.cpp +++ b/bindings/ruby/sfml-window/window/VideoMode.cpp @@ -264,8 +264,8 @@ void Init_VideoMode( void ) rb_define_method( globalVideoModeClass, "width", VideoMode_GetWidth, 0 ); rb_define_method( globalVideoModeClass, "width=", VideoMode_SetWidth, 1 ); - rb_define_method( globalVideoModeClass, "height", VideoMode_GetWidth, 0 ); - rb_define_method( globalVideoModeClass, "height=", VideoMode_SetWidth, 1 ); + rb_define_method( globalVideoModeClass, "height", VideoMode_GetHeight, 0 ); + rb_define_method( globalVideoModeClass, "height=", VideoMode_SetHeight, 1 ); rb_define_method( globalVideoModeClass, "bitsPerPixel", VideoMode_GetBitsPerPixel, 0 ); rb_define_method( globalVideoModeClass, "bitsPerPixel=", VideoMode_SetBitsPerPixel, 1 );