Ignore:
Timestamp:
Apr 20, 2011, 12:39:27 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: use vec2i for image::size and unroll all necessary changes
everywhere else in the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/input.cpp

    r494 r512  
    1212
    1313#include <string.h>
     14
     15#include "common.h"
    1416
    1517#include "input.h"
     
    202204  if (pressed)
    203205  {
    204     x2=x+pressed->width()-1;
    205     y2=y+pressed->height()-1;
     206    x2=x+pressed->Size().x-1;
     207    y2=y+pressed->Size().y-1;
    206208  }
    207209  else
     
    213215    } else
    214216    {
    215       x2=x+6+visual->width();
    216       y2=y+6+visual->height();
     217      x2=x+6+visual->Size().x;
     218      y2=y+6+visual->Size().y;
    217219    }
    218220  }
Note: See TracChangeset for help on using the changeset viewer.