Ignore:
Timestamp:
Mar 18, 2008, 12:05:08 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Cleaned up cache.cpp.
  • Renamed stupid "cash" variable into "cache".
  • Rename cache_list and crc_manager into CacheList? and CrcManager?.
File:
1 edited

Legend:

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

    r120 r123  
    1717{
    1818    char const *ff = "art/frame.spe";
    19     u_u = cash.reg(ff, "u_u", SPEC_IMAGE, 1),
    20     u_d = cash.reg(ff, "u_u", SPEC_IMAGE, 1),
    21     u_ua = cash.reg(ff, "u_ua", SPEC_IMAGE, 1),
    22     u_da = cash.reg(ff, "u_da", SPEC_IMAGE, 1),
    23     d_u = cash.reg(ff, "d_u", SPEC_IMAGE, 1),
    24     d_d = cash.reg(ff, "d_u", SPEC_IMAGE, 1),
    25     d_ua = cash.reg(ff, "d_ua", SPEC_IMAGE, 1),
    26     d_da = cash.reg(ff, "d_da", SPEC_IMAGE, 1),
    27     slider = cash.reg(ff, "volume_slide", SPEC_IMAGE, 1);
     19    u_u = cache.reg(ff, "u_u", SPEC_IMAGE, 1),
     20    u_d = cache.reg(ff, "u_u", SPEC_IMAGE, 1),
     21    u_ua = cache.reg(ff, "u_ua", SPEC_IMAGE, 1),
     22    u_da = cache.reg(ff, "u_da", SPEC_IMAGE, 1),
     23    d_u = cache.reg(ff, "d_u", SPEC_IMAGE, 1),
     24    d_d = cache.reg(ff, "d_u", SPEC_IMAGE, 1),
     25    d_ua = cache.reg(ff, "d_ua", SPEC_IMAGE, 1),
     26    d_da = cache.reg(ff, "d_da", SPEC_IMAGE, 1),
     27    slider = cache.reg(ff, "volume_slide", SPEC_IMAGE, 1);
    2828    x = prop->getd("volume_x", xres / 2 - 20);
    2929    y = prop->getd("volume_y", yres / 2 - 50);
     
    3636   
    3737    //reconfigure();
    38     bg = cash.reg(ff, "vcontrol", SPEC_IMAGE, 1);
    39     l = cash.img(bg)->width();
    40     h = cash.img(bg)->height();
     38    bg = cache.reg(ff, "vcontrol", SPEC_IMAGE, 1);
     39    l = cache.img(bg)->width();
     40    h = cache.img(bg)->height();
    4141    screen = new image(l, h, NULL, 2);
    4242    redraw();
     
    4545void VolumeWindow::redraw()
    4646{
    47     cash.img(bg)->put_image(screen, 0, 0);
     47    cache.img(bg)->put_image(screen, 0, 0);
    4848    draw_music_vol();
    4949    draw_sfx_vol();
     
    5757    if(t != 0)
    5858    {
    59         cash.img(slider)->put_image(screen, x1, y1);   
     59        cache.img(slider)->put_image(screen, x1, y1);   
    6060//      screen->bar(x1,y1,dx,y2,c1);
    6161    }
Note: See TracChangeset for help on using the changeset viewer.