Browse Source

* Remove tabs

tags/v0.99.beta17
Pascal Terjan pterjan 15 years ago
parent
commit
f517acc5fa
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      ruby/caca-canvas.c

+ 6
- 6
ruby/caca-canvas.c View File

@@ -467,12 +467,12 @@ static VALUE fill_triangle_textured(VALUE self, VALUE coords, VALUE texture, VAL
for(i=0; i<l; i++)
{
v = rb_ary_entry(coords, i);
if(l==6)
ccoords[i] = NUM2INT(v);
else
{
if(l==6)
ccoords[i] = NUM2INT(v);
else
{
if((TYPE(v) != T_ARRAY) || (RARRAY(v)->len != 2))
rb_raise(rb_eArgError, "invalid coords list");
rb_raise(rb_eArgError, "invalid coords list");
ccoords[2*i] = NUM2INT(rb_ary_entry(v, 0));
ccoords[2*i+1] = NUM2INT(rb_ary_entry(v, 1));
}
@@ -491,7 +491,7 @@ static VALUE fill_triangle_textured(VALUE self, VALUE coords, VALUE texture, VAL
else
{
if((TYPE(v) != T_ARRAY) || (RARRAY(v)->len != 2))
rb_raise(rb_eArgError, "invalid uv list");
rb_raise(rb_eArgError, "invalid uv list");
ccoords[2*i] = NUM2DBL(rb_ary_entry(v, 0));
ccoords[2*i+1] = NUM2DBL(rb_ary_entry(v, 1));
}


Loading…
Cancel
Save