~unity-team/unity/trunk

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/Tooltip.cpp

  • Committer: Tarmac
  • Author(s): Jay Taoko
  • Date: 2012-01-03 04:54:48 UTC
  • mfrom: (1799.1.2 unity-windowthread1)
  • Revision ID: tarmac-20120103045448-40ygl1lun7gc3jhi
* Deprecated the following:
    nux::GetWindow
    nux::GetGraphicsThread
    nux::GetGraphicsEngine
  The entry point to Nux internal component is nux::GetWindowThread().

* IMTextEntry:
  changed _text to text_ and _preedit to preedit_ as per Nux.
. Fixes: . Appoved by Jason Smith.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
  base.SetY(0);
132
132
  gfxContext.PushClippingRectangle(base);
133
133
 
134
 
  GetGraphicsEngine().GetRenderStates().SetBlend(false);
 
134
  nux::GetWindowThread()->GetGraphicsDisplay().GetGraphicsEngine()->GetRenderStates().SetBlend(false);
135
135
 
136
136
  TexCoordXForm texxform_bg;
137
137
  texxform_bg.SetWrap(TEXWRAP_CLAMP, TEXWRAP_CLAMP);
158
158
  texxform.SetWrap(TEXWRAP_CLAMP, TEXWRAP_CLAMP);
159
159
  texxform.SetTexCoordType(TexCoordXForm::OFFSET_COORD);
160
160
 
161
 
  GetGraphicsEngine().GetRenderStates().SetBlend(true);
162
 
  GetGraphicsEngine().GetRenderStates().SetPremultipliedBlend(nux::SRC_OVER);
 
161
  nux::GetWindowThread()->GetGraphicsDisplay().GetGraphicsEngine()->GetRenderStates().SetBlend(true);
 
162
  nux::GetWindowThread()->GetGraphicsDisplay().GetGraphicsEngine()->GetRenderStates().SetPremultipliedBlend(nux::SRC_OVER);
163
163
  gfxContext.QRP_1Tex(base.x,
164
164
                      base.y,
165
165
                      base.width,
168
168
                      texxform,
169
169
                      Color(1.0f, 1.0f, 1.0f, 1.0f));
170
170
 
171
 
  GetGraphicsEngine().GetRenderStates().SetBlend(false);
 
171
  nux::GetWindowThread()->GetGraphicsDisplay().GetGraphicsEngine()->GetRenderStates().SetBlend(false);
172
172
 
173
173
  _tooltip_text->ProcessDraw(gfxContext, forceDraw);
174
174