Ignore:
Timestamp:
Nov 27, 2007, 6:13:29 PM (12 years ago)
Author:
Pascal Terjan
Message:
  • Rename parameters of draw_box* in Ruby binding
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/ruby/cucul-canvas.c

    r2009 r2086  
    398398}
    399399
    400 static VALUE draw_box(VALUE self, VALUE x1, VALUE y1, VALUE x2, VALUE y2, VALUE ch)
    401 {
    402     cucul_draw_box(_SELF, NUM2INT(x1), NUM2INT(y1), NUM2INT(x2), NUM2INT(y2), NUM2ULONG(ch));
    403     return self;
    404 }
    405 
    406 static VALUE draw_thin_box(VALUE self, VALUE x1, VALUE y1, VALUE x2, VALUE y2)
    407 {
    408     cucul_draw_thin_box(_SELF, NUM2INT(x1), NUM2INT(y1), NUM2INT(x2), NUM2INT(y2));
    409     return self;
    410 }
    411 
    412 static VALUE draw_cp437_box(VALUE self, VALUE x1, VALUE y1, VALUE x2, VALUE y2)
    413 {
    414     cucul_draw_cp437_box(_SELF, NUM2INT(x1), NUM2INT(y1), NUM2INT(x2), NUM2INT(y2));
    415     return self;
    416 }
    417 
    418 static VALUE fill_box(VALUE self, VALUE x1, VALUE y1, VALUE x2, VALUE y2, VALUE ch)
    419 {
    420     cucul_fill_box(_SELF, NUM2INT(x1), NUM2INT(y1), NUM2INT(x2), NUM2INT(y2), NUM2ULONG(ch));
     400static VALUE draw_box(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h, VALUE ch)
     401{
     402    cucul_draw_box(_SELF, NUM2INT(x), NUM2INT(y), NUM2INT(w), NUM2INT(h), NUM2ULONG(ch));
     403    return self;
     404}
     405
     406static VALUE draw_thin_box(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h)
     407{
     408    cucul_draw_thin_box(_SELF, NUM2INT(x), NUM2INT(y), NUM2INT(w), NUM2INT(h));
     409    return self;
     410}
     411
     412static VALUE draw_cp437_box(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h)
     413{
     414    cucul_draw_cp437_box(_SELF, NUM2INT(x), NUM2INT(y), NUM2INT(w), NUM2INT(h));
     415    return self;
     416}
     417
     418static VALUE fill_box(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h, VALUE ch)
     419{
     420    cucul_fill_box(_SELF, NUM2INT(x), NUM2INT(y), NUM2INT(w), NUM2INT(h), NUM2ULONG(ch));
    421421    return self;
    422422}
Note: See TracChangeset for help on using the changeset viewer.