~haggai-eran/nux/rtl-rebased

« back to all changes in this revision

Viewing changes to Nux/WindowThread.cpp

  • Committer: Jay Taoko
  • Date: 2011-10-21 22:06:35 UTC
  • mto: This revision was merged to the branch mainline in revision 509.
  • Revision ID: jay.taoko@canonical.com-20111021220635-1tdvncs47hdlfbz1
* Removed custom Nux types: t_u32, t_s32, t_bool, ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
  {
124
124
    nux_glib_threads_lock();
125
125
    WindowThread *window_thread = NUX_STATIC_CAST(WindowThread *, user_data);
126
 
    t_u32 return_code = window_thread->ExecutionLoop(0);
 
126
    unsigned int return_code = window_thread->ExecutionLoop(0);
127
127
 
128
128
    if (return_code == 0 && !window_thread->IsEmbeddedWindow())
129
129
    {
315
315
  typedef struct
316
316
  {
317
317
    WindowThread *window_thread;
318
 
    t_u32 id;
 
318
    unsigned int id;
319
319
  } TimeoutData;
320
320
 
321
321
  gboolean nux_timeout_dispatch(gpointer user_data)
342
342
    return repeat;
343
343
  }
344
344
 
345
 
  t_u32 WindowThread::AddGLibTimeout(t_u32 duration)
 
345
  unsigned int WindowThread::AddGLibTimeout(unsigned int duration)
346
346
  {
347
347
    if (IsEmbeddedWindow())
348
348
    {
870
870
  extern EventToNameStruct EventToName[];
871
871
 
872
872
#if (defined(NUX_OS_LINUX) || defined(NUX_USE_GLIB_LOOP_ON_WINDOWS)) && (!defined(NUX_DISABLE_GLIB_LOOP))
873
 
  t_u32 WindowThread::ExecutionLoop(t_u32 timer_id)
 
873
  unsigned int WindowThread::ExecutionLoop(unsigned int timer_id)
874
874
#else
875
 
  t_u32 WindowThread::ExecutionLoop()
 
875
  unsigned int WindowThread::ExecutionLoop()
876
876
#endif
877
877
  {
878
878
    Event event;
1657
1657
    return m_FrameRate;
1658
1658
  }
1659
1659
 
1660
 
  t_u32 WindowThread::GetFrameCounter() const
 
1660
  unsigned int WindowThread::GetFrameCounter() const
1661
1661
  {
1662
1662
    return m_FrameCounter;
1663
1663
  }
1664
1664
 
1665
 
  t_u32 WindowThread::GetFramePeriodeCounter() const
 
1665
  unsigned int WindowThread::GetFramePeriodeCounter() const
1666
1666
  {
1667
1667
    return m_FramePeriodeCounter;
1668
1668
  }