d_text.cpp
/* move the cursor left (-1) or right (1) by the width of char c divided by div */
move the cursor left (-1) or right (1) by the width of char c divided by div
move the cursor left ( - 1 ) or right ( 1 ) by the width of char c divided by div
static void
move_cur(int dir, unsigned char c, float div)
{
    double	    cwidth;
    double	    cwsin, cwcos;
    cwidth = (float) (ZOOM_FACTOR * char_advance(canvas_font, c));
    cwsin = cwidth/div*sin_t;
    cwcos = cwidth/div*cos_t;
    rcur_x += dir*cwcos;
    rcur_y -= dir*cwsin;
    cur_x = round(rcur_x);
    cur_y = round(rcur_y);
    move_blinking_cursor(cur_x, cur_y);
}
static void move_cur ( int dir , unsigned char c , float div ) { double cwidth ; double cwsin , cwcos ; cwidth = ( float ) ( ZOOM_FACTOR * char_advance ( canvas_font , c ) ) ; cwsin = cwidth / div * sin_t ; cwcos = cwidth / div * cos_t ; rcur_x += dir * cwcos ; rcur_y -= dir * cwsin ; cur_x = round ( rcur_x ) ; cur_y = round ( rcur_y ) ; move_blinking_cursor ( cur_x , cur_y ) ; }
move the cursor left (-1) or right (1) by the width of char c divided by div
move the cursor left ( - 1 ) or right ( 1 ) by the width of char c divided by div