~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to intern/ghost/intern/GHOST_Rect.cpp

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        GHOST_TVisibility v;
76
76
        if (lt && rt && lb && rb) {
77
77
                // All points inside, rectangle is inside this
78
 
                v = GHOST_kFullyVisible;                
 
78
                v = GHOST_kFullyVisible;
79
79
        }
80
80
        else if (!(lt || rt || lb || rb)) {
81
81
                // None of the points inside
97
97
 
98
98
void GHOST_Rect::setCenter(GHOST_TInt32 cx, GHOST_TInt32 cy)
99
99
{
100
 
        GHOST_TInt32 offset = cx - (m_l + (m_r - m_l)/2);
 
100
        GHOST_TInt32 offset = cx - (m_l + (m_r - m_l) / 2);
101
101
        m_l += offset;
102
102
        m_r += offset;
103
 
        offset = cy - (m_t + (m_b - m_t)/2);
 
103
        offset = cy - (m_t + (m_b - m_t) / 2);
104
104
        m_t += offset;
105
105
        m_b += offset;
106
106
}