paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/src/widgets pgwidget.cpp,1.4.4.8,1.4.4.9


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/widgets pgwidget.cpp,1.4.4.8,1.4.4.9
Date: Tue, 30 Jul 2002 16:50:29 -0400

Update of /cvsroot/paragui/paragui/src/widgets
In directory subversions:/tmp/cvs-serv15063/src/widgets

Modified Files:
      Tag: devel-1-0
        pgwidget.cpp 
Log Message:
physfs sync
memleaks fixed
fixed callbacks within modal loops



Index: pgwidget.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgwidget.cpp,v
retrieving revision 1.4.4.8
retrieving revision 1.4.4.9
diff -C2 -r1.4.4.8 -r1.4.4.9
*** pgwidget.cpp        17 Jun 2002 14:25:42 -0000      1.4.4.8
--- pgwidget.cpp        30 Jul 2002 20:50:27 -0000      1.4.4.9
***************
*** 27,31 ****
   */
  
- //#include <iostream>
  #include <cstring>
  #include <stdarg.h>
--- 27,30 ----
***************
*** 1501,1513 ****
        my_internaldata->quitModalLoop = false;
  
!       // unlock the mutex
!       //SDL_mutexV(my_mutexReceiveMessage);
! 
        while(!my_internaldata->quitModalLoop) {
                SDL_WaitEvent(&event);
!               ProcessEvent(&event, true);
                PG_Application::DrawCursor();
        }
  
        return 0;
  }
--- 1500,1521 ----
        my_internaldata->quitModalLoop = false;
  
!       // run while in modal mode
        while(!my_internaldata->quitModalLoop) {
                SDL_WaitEvent(&event);
!               if(event.type == SDL_USEREVENT) {
!                       PumpIntoEventQueue(&event);
!               }
!               else {
!                       ProcessEvent(&event, true);
!               }
                PG_Application::DrawCursor();
        }
  
+       // poll all remaining events out of the eventloop
+       // there might be callback messages still in there
+       
+       while(SDL_PollEvent(&event)) {
+               ProcessEvent(&event, true);
+       }
        return 0;
  }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]