Ignore:
Timestamp:
May 16, 2011, 2:37:19 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: make JCFont use vec2i classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/ant.cpp

    r656 r668  
    473473    } else sprintf(msg,"%s : %s",symbol_str("lev_complete"),current_level->original_name());
    474474
    475     int w=wm->font()->width()*strlen(msg),h=wm->font()->height();
     475    int w = wm->font()->Size().x * strlen(msg),
     476        h = wm->font()->Size().y;
    476477    int x=(x1+x2)/2-w/2,y=(y1+y2)/2-h/2;
    477478    main_screen->Bar(vec2i(x - 10, y - 10), vec2i(x + w + 10, y + h + 10),
     
    480481                     wm->medium_color());
    481482
    482     wm->font()->put_string(main_screen,x+1,y+1,msg,wm->dark_color());
    483     wm->font()->put_string(main_screen,x,y,msg,wm->bright_color());
     483    wm->font()->PutString(main_screen, vec2i(x + 1, y + 1), msg, wm->dark_color());
     484    wm->font()->PutString(main_screen, vec2i(x, y), msg, wm->bright_color());
    484485    wm->flush_screen();
    485486    Timer now; now.WaitMs(500);
Note: See TracChangeset for help on using the changeset viewer.