Ignore:
Timestamp:
Dec 23, 2012, 11:57:24 AM (8 years ago)
Author:
sam
Message:

neercs: fix rendering issues and tweak timings so that large fullscreen
apps such as cacademo no longer appear to lag.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neercs/video/text-render.cpp

    r2158 r2176  
    122122    /* Upload libcaca canvas contents to the vertex buffers */
    123123    uint32_t *colors = (uint32_t *)m_vbo1->Lock(0, 0);
     124    uint32_t savedattr = caca_get_attr(m_caca, -1, -1);
    124125    for (int j = 0; j < m_canvas_size.y; j++)
    125126    for (int i = 0; i < m_canvas_size.x; i++)
     
    132133        caca_put_attr(m_caca, i, j, attr);
    133134    }
     135    caca_set_attr(m_caca, savedattr);
    134136    memcpy(colors, caca_get_canvas_attrs(m_caca),
    135137           m_cells * sizeof(uint32_t));
Note: See TracChangeset for help on using the changeset viewer.