diff options
Diffstat (limited to 'ue2')
| -rw-r--r-- | ue2/imgsynth2/cpixmap.cpp | 11 | ||||
| -rw-r--r-- | ue2/imgsynth2/cpixmap.h | 4 |
2 files changed, 12 insertions, 3 deletions
diff --git a/ue2/imgsynth2/cpixmap.cpp b/ue2/imgsynth2/cpixmap.cpp index ff5a83c..de9ec94 100644 --- a/ue2/imgsynth2/cpixmap.cpp +++ b/ue2/imgsynth2/cpixmap.cpp | |||
| @@ -71,10 +71,13 @@ void CPixMap::read(std::ifstream& in) | |||
| 71 | istr2 >> character; | 71 | istr2 >> character; |
| 72 | istr2 >> mode; | 72 | istr2 >> mode; |
| 73 | istr2 >> colors; | 73 | istr2 >> colors; |
| 74 | m_fileheader.xpmColors[character][mode] = colors; | 74 | //m_fileheader.xpmColors[character][mode] = colors; |
| 75 | m_fileheader.xpmColors[character] = colors; | ||
| 75 | 76 | ||
| 76 | getline( in, str, '"' ); | 77 | getline( in, str, '"' ); |
| 77 | } | 78 | } |
| 79 | |||
| 80 | |||
| 78 | /* colors.replace(0,1,"0x"); | 81 | /* colors.replace(0,1,"0x"); |
| 79 | colors.insert(4, " 0x"); | 82 | colors.insert(4, " 0x"); |
| 80 | colors.insert(9," 0x"); | 83 | colors.insert(9," 0x"); |
| @@ -121,6 +124,12 @@ void CPixMap::read(std::ifstream& in) | |||
| 121 | 124 | ||
| 122 | void CPixMap::write(std::ofstream& out) | 125 | void CPixMap::write(std::ofstream& out) |
| 123 | { | 126 | { |
| 127 | out<<"/* XPM */"<<endl; | ||
| 128 | out<<"static char * yellow_man1_default_xpm[] = {"<<endl; | ||
| 129 | out<<"\""<<m_fileheader.xpmWidth<<" "<<m_fileheader.xpmHeight | ||
| 130 | <<" "<<m_fileheader.nColor<<" "<<m_fileheader.nChar<<"\","<<endl; | ||
| 131 | |||
| 132 | |||
| 124 | dump(out); | 133 | dump(out); |
| 125 | } | 134 | } |
| 126 | 135 | ||
diff --git a/ue2/imgsynth2/cpixmap.h b/ue2/imgsynth2/cpixmap.h index 6e147ed..c7537cd 100644 --- a/ue2/imgsynth2/cpixmap.h +++ b/ue2/imgsynth2/cpixmap.h | |||
| @@ -112,8 +112,8 @@ class CPixMap : public CBitmap | |||
| 112 | uint32_t yHotspot; | 112 | uint32_t yHotspot; |
| 113 | 113 | ||
| 114 | /* color tables*/ | 114 | /* color tables*/ |
| 115 | std::map<unsigned const char, std::map< std::string, std::string > > xpmColors; | 115 | // std::map<std::string, std::map< std::string, std::string > > xpmColors; |
| 116 | 116 | // std::map<std::string, uint32_t[3]> xpmColors; | |
| 117 | 117 | ||
| 118 | 118 | ||
| 119 | } PIXMAP_FILEHEADER; | 119 | } PIXMAP_FILEHEADER; |
