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/director.cpp

    r665 r668  
    4747    main_screen->InClip(vec2i(x1, y1), vec2i(x2 + 1, y2 + 1));
    4848
    49   int h=font->height()+2,w=font->width(),x=x1,dist;
     49  int h=font->Size().y+2,w=font->Size().x,x=x1,dist;
    5050  y+=y1;
    5151  char const *word_start;
     
    109109      while (word_len--)
    110110      {
    111     font->put_char(main_screen,x+1,y+1,*word_start,0);
    112     font->put_char(main_screen,x,y,*word_start,c);
     111    font->PutChar(main_screen, vec2i(x + 1, y + 1), *word_start, 0);
     112    font->PutChar(main_screen, vec2i(x, y), *word_start, c);
    113113    word_start++;
    114114    x+=w;
Note: See TracChangeset for help on using the changeset viewer.