Ignore:
Timestamp:
Nov 11, 2006, 3:24:35 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Add cursor and handle support to canvases. Unused yet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/export.c

    r1332 r1342  
    172172     *  - 24 bytes for the frame info
    173173     * 8 bytes for each character cell */
    174     *bytes = 44 + 8 * cv->width * cv->height;
     174    *bytes = 52 + 8 * cv->width * cv->height;
    175175    cur = data = malloc(*bytes);
    176176
     
    179179
    180180    /* canvas_header */
    181     cur += sprintu32(cur, 16 + 24);
     181    cur += sprintu32(cur, 16 + 32 * 1);
    182182    cur += sprintu32(cur, cv->width * cv->height * 8);
    183183    cur += sprintu16(cur, 0x0001);
     
    190190    cur += sprintu32(cur, 0);
    191191    cur += sprintu32(cur, cv->curattr);
    192     cur += sprintu32(cur, 0);
    193     cur += sprintu32(cur, 0);
     192    cur += sprintu32(cur, cv->frames[0].x);
     193    cur += sprintu32(cur, cv->frames[0].y);
     194    cur += sprintu32(cur, cv->frames[0].handlex);
     195    cur += sprintu32(cur, cv->frames[0].handley);
    194196
    195197    /* canvas_data */
     
    237239 *                               // not specify a duration
    238240 *       uint32_t attr;          // Graphics context attribute
     241 *       int32_t cursor_x;       // Cursor X coordinate
     242 *       int32_t cursor_y;       // Cursor Y coordinate
    239243 *       int32_t handle_x;       // Handle X coordinate
    240244 *       int32_t handle_y;       // Handle Y coordinate
Note: See TracChangeset for help on using the changeset viewer.