Ignore:
Timestamp:
May 13, 2011, 9:13:58 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: reverse the image::put_image logic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/ui/volumewindow.cpp

    r555 r644  
    4444    l = cache.img(bg)->Size().x;
    4545    h = cache.img(bg)->Size().y;
    46     screen = new image(cache.img(bg)->Size(), NULL, 2);
     46    m_surf = new image(cache.img(bg)->Size(), NULL, 2);
    4747    redraw();
    4848}
     
    5050void VolumeWindow::redraw()
    5151{
    52     cache.img(bg)->put_image(screen, 0, 0);
     52    m_surf->PutImage(cache.img(bg), 0, 0);
    5353    draw_music_vol();
    5454    draw_sfx_vol();
     
    6262    if(t != 0)
    6363    {
    64         cache.img(slider)->put_image(screen, x1, y1);
    65 //      screen->bar(x1,y1,dx,y2,c1);
     64        m_surf->PutImage(cache.img(slider), x1, y1);
     65//      m_surf->bar(x1,y1,dx,y2,c1);
    6666    }
    6767    else
     
    6969
    7070    if(dx < x2)
    71         screen->bar(dx + 1, y1, x2, y2, c2);
     71        m_surf->bar(dx + 1, y1, x2, y2, c2);
    7272}
    7373
Note: See TracChangeset for help on using the changeset viewer.