~haggai-eran/nux/rtl-rebased

« back to all changes in this revision

Viewing changes to Nux/StaticText.cpp

  • Committer: Jay Taoko
  • Date: 2011-10-21 23:49:15 UTC
  • mfrom: (508.1.2 nux-20)
  • Revision ID: jay.taoko@canonical.com-20111021234915-hnzakb5ndebica8i
* Removed custom Nux types: t_u32, t_s32, t_bool, ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
    nux::GetPainter().PaintBackground(graphics_engine, base);
210
210
 
211
211
    // Get the current blend states. They will be restored later.
212
 
    t_u32 alpha = 0, src = 0, dest = 0;
 
212
    unsigned int alpha = 0, src = 0, dest = 0;
213
213
    graphics_engine.GetRenderStates().GetBlend(alpha, src, dest);
214
214
 
215
215
    graphics_engine.GetRenderStates().SetBlend(true, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
276
276
    // Calling SetBaseSize will trigger a layout request of this view and all of its parents.
277
277
    SetBaseSize(sz.width, sz.height);
278
278
 
 
279
    update_text_rendering_ = true;
279
280
    text_changed.emit(this);
280
281
    QueueDraw();
281
282
  }