Ignore:
Timestamp:
07/27/09 01:26:15 (4 years ago)
Author:
sam
Message:

Rename caca_get_cursor_x() and caca_get_cursor_y() to caca_wherex() and
caca_wherey(), in order to match the old <conio.h> naming scheme.

File:
1 edited

Legend:

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

    r3582 r3587  
    110110} 
    111111 
    112 get_int(cursor_x) 
    113 get_int(cursor_y) 
     112static VALUE wherex(VALUE self) 
     113{ 
     114    return INT2NUM(caca_wherex(_SELF)); 
     115} 
     116 
     117static VALUE wherey(VALUE self) 
     118{ 
     119    return INT2NUM(caca_wherey(_SELF)); 
     120} 
    114121 
    115122simple_func(clear_canvas) 
     
    586593 
    587594    rb_define_method(cCanvas, "gotoxy", gotoxy, 2); 
    588     rb_define_method(cCanvas, "cursor_x", get_cursor_x, 0); 
    589     rb_define_method(cCanvas, "cursor_y", get_cursor_y, 0); 
     595    rb_define_method(cCanvas, "wherex", wherex, 0); 
     596    rb_define_method(cCanvas, "wherey", wherey, 0); 
    590597    rb_define_method(cCanvas, "handle_x", get_canvas_handle_x, 0); 
    591598    rb_define_method(cCanvas, "handle_y", get_canvas_handle_y, 0); 
Note: See TracChangeset for help on using the changeset viewer.