diff options
| author | Günther Neuwirth <e0626638@student.tuwien.ac.at> | 2009-05-01 14:58:58 +0200 |
|---|---|---|
| committer | Günther Neuwirth <e0626638@student.tuwien.ac.at> | 2009-05-01 14:58:58 +0200 |
| commit | b0442de485dcb6328366d9b05a62af345e5fa39f (patch) | |
| tree | 594628ba235e526ed54554cf72794b71624f4591 /ue2/imgsynth2/cbitmap.cpp | |
| parent | 6b89034cd15a2ca270591aec89b8b13c868b86fc (diff) | |
| download | ooprog-b0442de485dcb6328366d9b05a62af345e5fa39f.tar.gz ooprog-b0442de485dcb6328366d9b05a62af345e5fa39f.tar.bz2 ooprog-b0442de485dcb6328366d9b05a62af345e5fa39f.zip | |
Adding cpixelformat_indexd8.h and .cpp. Adding virtual methode getColorMode to CPixelFormat. Adding color table to CBitmap. Adding implementation of CPixmap
Diffstat (limited to 'ue2/imgsynth2/cbitmap.cpp')
| -rw-r--r-- | ue2/imgsynth2/cbitmap.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ue2/imgsynth2/cbitmap.cpp b/ue2/imgsynth2/cbitmap.cpp index b9cfc62..acee870 100644 --- a/ue2/imgsynth2/cbitmap.cpp +++ b/ue2/imgsynth2/cbitmap.cpp | |||
| @@ -25,6 +25,14 @@ CBitmap::~CBitmap() | |||
| 25 | for (it = m_handlers.begin(); it != m_handlers.end(); it++) | 25 | for (it = m_handlers.begin(); it != m_handlers.end(); it++) |
| 26 | delete *it; | 26 | delete *it; |
| 27 | m_pixelformat = NULL; | 27 | m_pixelformat = NULL; |
| 28 | |||
| 29 | /* delete color table */ | ||
| 30 | map<string, map<string, uint32_t* > >::iterator it1; | ||
| 31 | map<string, uint32_t* >::iterator it2; | ||
| 32 | for ( it1= xpmColors.begin() ; it1 != xpmColors.end(); it1++ ) | ||
| 33 | for ( it2=(*it1).second.begin() ; it2 != (*it1).second.end(); it2++ ) | ||
| 34 | delete [] (*it2).second; | ||
| 35 | |||
| 28 | } | 36 | } |
| 29 | 37 | ||
| 30 | /*----------------------------------------------------------------------------*/ | 38 | /*----------------------------------------------------------------------------*/ |
