Ignore:
Timestamp:
Jul 27, 2009, 1:26:15 AM (11 years ago)
Author:
Sam Hocevar
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/caca-sharp/Canvas.cs

    r2867 r3587  
    22 *  libcaca       .NET bindings for libcaca
    33 *  Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
    4  *                2007 Sam Hocevar <sam@zoy.org>
     4 *                2007-2009 Sam Hocevar <sam@hocevar.net>
    55 *                All Rights Reserved
    66 *
     
    116116        [DllImport("libcaca.dll", CallingConvention=CallingConvention.Cdecl),
    117117         SuppressUnmanagedCodeSecurity]
    118         private static extern int caca_get_cursor_x(IntPtr cv);
    119         [DllImport("libcaca.dll", CallingConvention=CallingConvention.Cdecl),
    120          SuppressUnmanagedCodeSecurity]
    121         private static extern int caca_get_cursor_y(IntPtr cv);
     118        private static extern int caca_wherex(IntPtr cv);
     119        [DllImport("libcaca.dll", CallingConvention=CallingConvention.Cdecl),
     120         SuppressUnmanagedCodeSecurity]
     121        private static extern int caca_wherey(IntPtr cv);
    122122        public Point Cursor
    123123        {
    124             get { return new Point(caca_get_cursor_x(_c_cv),
    125                                    caca_get_cursor_y(_c_cv)); }
     124            get { return new Point(caca_wherex(_c_cv), caca_wherey(_c_cv)); }
    126125            set { caca_gotoxy(_c_cv, value.X, value.Y); }
    127126        }
Note: See TracChangeset for help on using the changeset viewer.