pmc/rectangle.cc
changeset 46 4b9e1ac40246
parent 45 7197576fedcf
child 54 c064ce9f40f5
equal deleted inserted replaced
45:7197576fedcf 46:4b9e1ac40246
    61     if ((anker.X () + location.X ()) < 0)
    61     if ((anker.X () + location.X ()) < 0)
    62         return;
    62         return;
    63     if ((anker.Y () + location.Y ()) < 0)
    63     if ((anker.Y () + location.Y ()) < 0)
    64         return;
    64         return;
    65 
    65 
    66     if ((anker.X () + location.X ()) >= surface->getWidth ())
    66     if ((anker.X () + location.X ()) > surface->getWidth ())
    67         return;
    67         return;
    68     if ((anker.Y () + location.Y ()) >= surface->getHeight ())
    68     if ((anker.Y () + location.Y ()) > surface->getHeight ())
    69         return;
    69         return;
    70 
    70 
    71     for (int i = 0; i < 4; i++) {
    71     for (int i = 0; i < 4; i++) {
    72         *P[i] = *P[i] + location;
    72         *P[i] = *P[i] + location;
    73     }
    73     }