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

    r670 r682  
    1919void transp_put(image *im, image *screen, uint8_t *table, int x, int y)
    2020{
    21     vec2i caa, cbb;
     21    ivec2 caa, cbb;
    2222    screen->GetClip(caa, cbb);
    2323
    24     vec2i aa(0), bb = im->Size();
    25     vec2i pos(x, y);
     24    ivec2 aa(0), bb = im->Size();
     25    ivec2 pos(x, y);
    2626
    27     aa += Max(caa - pos, vec2i(0));
    28     bb -= Max(caa - pos, vec2i(0));
     27    aa += Max(caa - pos, ivec2(0));
     28    bb -= Max(caa - pos, ivec2(0));
    2929    pos = Max(caa, pos);
    3030
    31     bb = Min(bb, cbb - vec2i(1) - pos);
     31    bb = Min(bb, cbb - ivec2(1) - pos);
    3232
    33     if (!(bb >= vec2i(0)))
     33    if (!(bb >= ivec2(0)))
    3434        return;
    3535    screen->AddDirty(pos, pos + bb);
Note: See TracChangeset for help on using the changeset viewer.