Ignore:
Timestamp:
Sep 12, 2011, 10:17:23 PM (8 years ago)
Author:
Sam Hocevar
Message:

core: rename vec2i to ivec2 and update matrix.h from Lol Engine.

File:
1 edited

Legend:

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

    r674 r682  
    4343int text_draw(int y, int x1, int y1, int x2, int y2, char const *buf, JCFont *font, uint8_t *cmap, char color)
    4444{
    45     vec2i caa, cbb;
     45    ivec2 caa, cbb;
    4646    main_screen->GetClip(caa, cbb);
    47     main_screen->InClip(vec2i(x1, y1), vec2i(x2 + 1, y2 + 1));
     47    main_screen->InClip(ivec2(x1, y1), ivec2(x2 + 1, y2 + 1));
    4848
    4949  int h=font->Size().y+2,w=font->Size().x,x=x1,dist;
     
    109109      while (word_len--)
    110110      {
    111     font->PutChar(main_screen, vec2i(x + 1, y + 1), *word_start, 0);
    112     font->PutChar(main_screen, vec2i(x, y), *word_start, c);
     111    font->PutChar(main_screen, ivec2(x + 1, y + 1), *word_start, 0);
     112    font->PutChar(main_screen, ivec2(x, y), *word_start, c);
    113113    word_start++;
    114114    x+=w;
Note: See TracChangeset for help on using the changeset viewer.