Ignore:
Timestamp:
Dec 18, 2009, 10:50:37 PM (10 years ago)
Author:
Sam Hocevar
Message:

Fix an alignment issue in caca_get_canvas_chars() and caca_get_canvas_attrs().
Fixes #41.

File:
1 edited

Legend:

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

    r3584 r4146  
    264264 *  caca_get_char().
    265265 *
    266  *  This function is only useful for display drivers such as the \e libcaca
    267  *  library.
     266 *  This function is probably only useful for \e libcaca 's internal display
     267 *  drivers.
    268268 *
    269269 *  This function never fails.
     
    272272 *  \return The canvas character array.
    273273 */
    274 uint8_t const * caca_get_canvas_chars(caca_canvas_t const *cv)
    275 {
    276     return (uint8_t const *)cv->chars;
     274uint32_t const * caca_get_canvas_chars(caca_canvas_t const *cv)
     275{
     276    return (uint32_t const *)cv->chars;
    277277}
    278278
     
    283283 *  caca_get_attr().
    284284 *
    285  *  This function is only useful for display drivers such as the \e libcaca
    286  *  library.
     285 *  This function is probably only useful for \e libcaca 's internal display
     286 *  drivers.
    287287 *
    288288 *  This function never fails.
     
    291291 *  \return The canvas attribute array.
    292292 */
    293 uint8_t const * caca_get_canvas_attrs(caca_canvas_t const *cv)
    294 {
    295     return (uint8_t const *)cv->attrs;
     293uint32_t const * caca_get_canvas_attrs(caca_canvas_t const *cv)
     294{
     295    return (uint32_t const *)cv->attrs;
    296296}
    297297
     
    540540int cucul_get_canvas_height(cucul_canvas_t const *)
    541541    CACA_ALIAS(caca_get_canvas_height);
    542 uint8_t const * cucul_get_canvas_chars(cucul_canvas_t const *)
     542uint32_t const * cucul_get_canvas_chars(cucul_canvas_t const *)
    543543    CACA_ALIAS(caca_get_canvas_chars);
    544 uint8_t const * cucul_get_canvas_attrs(cucul_canvas_t const *)
     544uint32_t const * cucul_get_canvas_attrs(cucul_canvas_t const *)
    545545    CACA_ALIAS(caca_get_canvas_attrs);
    546546int cucul_free_canvas(cucul_canvas_t *) CACA_ALIAS(caca_free_canvas);
Note: See TracChangeset for help on using the changeset viewer.