[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/src/core pgapplication.cpp,1.2.4.17,1.2.4.18
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/src/core pgapplication.cpp,1.2.4.17,1.2.4.18 pgfilearchive.cpp,1.2.4.12,1.2.4.13 pgmessageobject.cpp,1.1.6.5,1.1.6.6 pgrectlist.cpp,1.1.6.1,1.1.6.2 |
Date: |
Sat, 05 Apr 2003 09:48:35 -0500 |
Update of /cvsroot/paragui/paragui/src/core
In directory subversions:/tmp/cvs-serv8925/src/core
Modified Files:
Tag: devel-1-0
pgapplication.cpp pgfilearchive.cpp pgmessageobject.cpp
pgrectlist.cpp
Log Message:
- fixed a bug in PG_MessageObject::PumpIntoEventQueue(..)
MOUSEMOTIONEVENT don't need to be passed to ALL objects
- added a method to PG_Application to clear and delete the background
(void DeleteBackground()) (Thanks H.C. <address@hidden>)
- fixed a potential memory leak in PG_Application resulting from changing
non-scaled backgrounds (Thanks H.C. <address@hidden>)
- added a method to PG_RichEdit to set the default alignment (void
SetAutoVerticalResize(...)) (Thanks H.C. <address@hidden>)
- added a method to PG_RichEdit to activate / deactivate auto vertical
resize (void SetAlignment(...)) (Thanks H.C. <address@hidden>)
Index: pgapplication.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgapplication.cpp,v
retrieving revision 1.2.4.17
retrieving revision 1.2.4.18
diff -C2 -r1.2.4.17 -r1.2.4.18
*** pgapplication.cpp 30 Mar 2003 16:30:57 -0000 1.2.4.17
--- pgapplication.cpp 5 Apr 2003 14:48:33 -0000 1.2.4.18
***************
*** 375,378 ****
--- 375,383 ----
return false;
+ if(my_freeBackground && my_background) {
+ UnloadSurface(my_background);
+ my_freeBackground = false;
+ }
+
my_background = LoadSurface(filename);
***************
*** 939,942 ****
--- 944,961 ----
void PG_Application::EnableBackground(bool enable) {
enableBackground = enable;
+ }
+
+ void PG_Application::DeleteBackground() {
+ enableBackground = false;
+
+ if(my_scaled_background) {
+ // Destroyed scaled background if present
+ SDL_FreeSurface(my_scaled_background);
+ my_scaled_background = 0;
+ }
+ if(my_freeBackground && my_background) {
+ UnloadSurface(my_background);
+ my_freeBackground = false;
+ }
}
Index: pgfilearchive.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgfilearchive.cpp,v
retrieving revision 1.2.4.12
retrieving revision 1.2.4.13
diff -C2 -r1.2.4.12 -r1.2.4.13
*** pgfilearchive.cpp 30 Mar 2003 16:30:57 -0000 1.2.4.12
--- pgfilearchive.cpp 5 Apr 2003 14:48:33 -0000 1.2.4.13
***************
*** 302,306 ****
if(convert && !PG_Application::GetGLMode()) {
! SDL_Surface* tmpsrf = SDL_DisplayFormatAlpha(surface);
if(tmpsrf) {
SDL_FreeSurface(surface);
--- 302,311 ----
if(convert && !PG_Application::GetGLMode()) {
! SDL_Surface* tmpsrf = NULL;
! if (surface->flags & SDL_SRCALPHA)
! tmpsrf = SDL_DisplayFormatAlpha(surface);
! else
! tmpsrf = SDL_DisplayFormat(surface);
!
if(tmpsrf) {
SDL_FreeSurface(surface);
Index: pgmessageobject.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgmessageobject.cpp,v
retrieving revision 1.1.6.5
retrieving revision 1.1.6.6
diff -C2 -r1.1.6.5 -r1.1.6.6
*** pgmessageobject.cpp 4 Jan 2003 21:13:40 -0000 1.1.6.5
--- pgmessageobject.cpp 5 Apr 2003 14:48:33 -0000 1.1.6.6
***************
*** 347,351 ****
return true;
}
! break;
case SDL_MOUSEBUTTONUP:
--- 347,351 ----
return true;
}
! return true;
case SDL_MOUSEBUTTONUP:
Index: pgrectlist.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgrectlist.cpp,v
retrieving revision 1.1.6.1
retrieving revision 1.1.6.2
diff -C2 -r1.1.6.1 -r1.1.6.2
*** pgrectlist.cpp 10 Jun 2002 12:00:13 -0000 1.1.6.1
--- pgrectlist.cpp 5 Apr 2003 14:48:33 -0000 1.1.6.2
***************
*** 160,164 ****
for(iterator i = begin(); i != end(); i++) {
! if(!(*i)->IsVisible()) {
continue;
}
--- 160,164 ----
for(iterator i = begin(); i != end(); i++) {
! if(!(*i)->IsVisible() || (*i)->IsHidden()) {
continue;
}
***************
*** 187,191 ****
// blit all objects in the list
for(iterator i = begin(); i != end(); i++) {
! if(!(*i)->IsVisible()) {
continue;
}
--- 187,191 ----
// blit all objects in the list
for(iterator i = begin(); i != end(); i++) {
! if(!(*i)->IsVisible() || (*i)->IsHidden()) {
continue;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/src/core pgapplication.cpp,1.2.4.17,1.2.4.18 pgfilearchive.cpp,1.2.4.12,1.2.4.13 pgmessageobject.cpp,1.1.6.5,1.1.6.6 pgrectlist.cpp,1.1.6.1,1.1.6.2,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/include pgapplication.h,1.3.6.6,1.3.6.7 pgrichedit.h,1.3.6.2,1.3.6.3
- Next by Date:
[paragui-cvs] CVS: paragui/test listbox.cpp,1.1.2.4,1.1.2.5 paratest.cpp,1.2.6.9,1.2.6.10
- Previous by thread:
[paragui-cvs] CVS: paragui/include pgapplication.h,1.3.6.6,1.3.6.7 pgrichedit.h,1.3.6.2,1.3.6.3
- Next by thread:
[paragui-cvs] CVS: paragui/test listbox.cpp,1.1.2.4,1.1.2.5 paratest.cpp,1.2.6.9,1.2.6.10
- Index(es):