~canonical-dx-team/nux/nux.fix-702538

« back to all changes in this revision

Viewing changes to Nux/BaseWindow.cpp

  • Committer: Jay Taoko
  • Date: 2011-01-04 03:57:29 UTC
  • mfrom: (157.1.13 nux-holidays)
  • Revision ID: jay.taoko@canonical.com-20110104035729-0xh3iabo7e7dk371
* Added support to copy a texture from the current render target
* Blur, Color matrix, Exponent shaders
* Gaussian blur
* Bug fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
    {
173
173
      //nuxDebugMsg(TEXT("[BaseWindow::DrawContent]"));
174
174
      GetPainter().PushShapeLayer (GfxContext, base, eSHAPE_CORNER_ROUND10, m_background_color, eAllCorners, true);
175
 
      //GfxContext.QRP_GLSL_Color(base.x, base.y, base.width, base.height, Color(1.0f, 0.0f, 0.0f, 1.0f));
176
 
      //GfxContext.QRP_GLSL_Color(base.x, base.y, base.width, base.height, Color(1.0f / (float) (std::rand () % 100), 1.0f / (float) (std::rand () % 100), 1.0f / (float) (std::rand () % 100), 0.5f));
 
175
      //GfxContext.QRP_Color(base.x, base.y, base.width, base.height, Color(1.0f, 0.0f, 0.0f, 1.0f));
 
176
      //GfxContext.QRP_Color(base.x, base.y, base.width, base.height, Color(1.0f / (float) (std::rand () % 100), 1.0f / (float) (std::rand () % 100), 1.0f / (float) (std::rand () % 100), 0.5f));
177
177
    }
178
178
 
179
179
    if (m_layout)
442
442
    ComputeChildLayout();
443
443
 
444
444
    if (m_bIsModal)
445
 
      GetWindowCompositor().StartModalWindow (IntrusiveWeakSP<BaseWindow> (this));
 
445
      GetWindowCompositor().StartModalWindow (ObjectWeakPtr<BaseWindow> (this));
446
446
 
447
447
    // Whether this view is added or removed, call NeedRedraw. in the case where this view is removed, this is a signal 
448
448
    // that the region below this view need to be redrawn.
459
459
    m_bIsVisible = false;
460
460
    m_bIsModal = false;
461
461
    //ShowWindow(false);
462
 
    GetWindowCompositor().StopModalWindow (IntrusiveWeakSP<BaseWindow> (this));
 
462
    GetWindowCompositor().StopModalWindow (ObjectWeakPtr<BaseWindow> (this));
463
463
  }
464
464
 
465
465
  bool BaseWindow::IsModal() const