~smspillaz/unity/unity.6.0.fix_1036521

« back to all changes in this revision

Viewing changes to launcher/EdgeBarrierController.cpp

  • Committer: Andrea Azzarone
  • Date: 2012-09-07 17:18:00 UTC
  • mfrom: (2671 unity)
  • mto: This revision was merged to the branch mainline in revision 2673.
  • Revision ID: azzaronea@gmail.com-20120907171800-8btuygb8d45rb6k1
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
 
156
156
void EdgeBarrierController::Impl::OnPointerBarrierEvent(PointerBarrierWrapper* owner, BarrierEvent::Ptr event)
157
157
{
 
158
  if (owner->released)
 
159
  {
 
160
    BarrierRelease(owner, event->event_id);
 
161
    return;
 
162
  }
 
163
 
158
164
  unsigned int monitor = owner->index;
159
165
  bool process = true;
160
166
 
166
172
      process = false;
167
173
  }
168
174
 
169
 
  if (process && owner->released)
170
 
  {
171
 
    BarrierRelease(owner, event->event_id);
172
 
  }
173
 
  else if (process && owner->x1 > 0)
 
175
  if (process && owner->x1 > 0)
174
176
  {
175
177
    decaymulator_.value = decaymulator_.value + event->velocity;
176
178