~ubuntu-branches/ubuntu/trusty/compiz/trusty

« back to all changes in this revision

Viewing changes to src/output.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-08-22 06:58:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3352.
  • Revision ID: package-import@ubuntu.com-20130822065807-17nlzez0d30y09so
Tags: upstream-0.9.10+13.10.20130822
ImportĀ upstreamĀ versionĀ 0.9.10+13.10.20130822

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
CompOutput::CompOutput ()
31
31
{
32
32
    mName = "";
33
 
    mId = ~0;
 
33
    mId   = ~0;
34
34
}
35
35
 
36
36
CompString
52
52
}
53
53
 
54
54
void
55
 
CompOutput::setWorkArea (const CompRect& workarea)
 
55
CompOutput::setWorkArea (const CompRect &workarea)
56
56
{
57
57
    mWorkArea = workarea;
58
58
 
59
 
    if (workarea.x () < (int) x1 ())
 
59
    if (workarea.x ()  < static_cast <int> (x1 ()))
60
60
        mWorkArea.setX (x1 ());
61
61
 
62
 
    if (workarea.y () < (int) y1 ())
 
62
    if (workarea.y ()  < static_cast <int> (y1 ()))
63
63
        mWorkArea.setY (y1 ());
64
64
 
65
 
    if (workarea.x2 () > (int) x2 ())
66
 
        mWorkArea.setWidth (x2 () - mWorkArea.x ());
 
65
    if (workarea.x2 () > static_cast <int> (x2 ()))
 
66
        mWorkArea.setWidth (x2 ()  - mWorkArea.x ());
67
67
 
68
 
    if (workarea.y2 () > (int) y2 ())
 
68
    if (workarea.y2 () > static_cast <int> (y2 ()))
69
69
        mWorkArea.setHeight (y2 () - mWorkArea.y ());
70
70
}
71
71
 
81
81
}
82
82
 
83
83
void
84
 
CompOutput::setId (CompString name, unsigned int id)
 
84
CompOutput::setId (CompString   name,
 
85
                   unsigned int id)
85
86
{
86
87
    mName = name;
87
 
    mId = id;
 
88
    mId   = id;
88
89
}
89