Nothing major, just some changes here and there.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1722 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
0446d03a03
commit
7e42a2b505
3 changed files with 6 additions and 3 deletions
|
@ -59,13 +59,15 @@ static VALUE Text_Initialize( int argc, VALUE *args, VALUE self )
|
|||
{
|
||||
case 3:
|
||||
characterSize = FIX2UINT( args[2] );
|
||||
object->SetCharacterSize( characterSize );
|
||||
case 2:
|
||||
VALIDATE_CLASS( args[1], globalFontClass, "font" );
|
||||
Data_Get_Struct( args[1], sf::Font, font );
|
||||
rb_iv_set( self, "@__font_ref", args[1] );
|
||||
object->SetFont( *font );
|
||||
case 1:
|
||||
string = rb_string_value_cstr( &args[0] );
|
||||
*object = sf::Text( string, *font, characterSize );
|
||||
object->SetString( string );
|
||||
case 0:
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue