[Top][All Lists]
[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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/src/widgets pgwidget.cpp,1.4.4.8,1.4.4.9,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/src/core pgapplication.cpp,1.2.4.11,1.2.4.12 pgfile.cpp,1.1.6.2,1.1.6.3 pgfilearchive.cpp,1.2.4.7,1.2.4.8 pgmessageobject.cpp,1.1.6.2,1.1.6.3
- Next by Date:
[paragui-cvs] CVS: paragui/src/physfs/archivers dir.c,1.1.1.1.6.3,1.1.1.1.6.4 grp.c,1.1.1.1.6.4,1.1.1.1.6.5 zip.c,1.1.1.1.6.6,1.1.1.1.6.7
- Previous by thread:
[paragui-cvs] CVS: paragui/src/core pgapplication.cpp,1.2.4.11,1.2.4.12 pgfile.cpp,1.1.6.2,1.1.6.3 pgfilearchive.cpp,1.2.4.7,1.2.4.8 pgmessageobject.cpp,1.1.6.2,1.1.6.3
- Next by thread:
[paragui-cvs] CVS: paragui/src/physfs/archivers dir.c,1.1.1.1.6.3,1.1.1.1.6.4 grp.c,1.1.1.1.6.4,1.1.1.1.6.5 zip.c,1.1.1.1.6.6,1.1.1.1.6.7
- Index(es):