~ted/unity/menu-ref

« back to all changes in this revision

Viewing changes to dash/FilterRatingsButton.cpp

  • Committer: Jay Taoko
  • Date: 2012-09-18 11:55:33 UTC
  • mfrom: (2696.3.6 unity.dash-to-preview)
  • mto: This revision was merged to the branch mainline in revision 2719.
  • Revision ID: jay.taoko@canonical.com-20120918115533-ksgl1o12m1wfxy9r
* Merged with Unity trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
  unsigned int alpha = 0, src = 0, dest = 0;
108
108
 
109
109
  GfxContext.GetRenderStates().GetBlend(alpha, src, dest);
 
110
  if (RedirectedAncestor())
 
111
  {
 
112
    // This is necessary when doing redirected rendering.
 
113
    // Clean the area below this view before drawing anything.
 
114
    GfxContext.GetRenderStates().SetBlend(false);
 
115
    GfxContext.QRP_Color(GetX(), GetY(), GetWidth(), GetHeight(), nux::Color(0.0f, 0.0f, 0.0f, 0.0f));
 
116
  }
110
117
  GfxContext.GetRenderStates().SetBlend(true, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
111
118
 
112
119
  nux::Color col = nux::color::Black;