summaryrefslogtreecommitdiffstats
path: root/ue2/imgsynth2/cpixmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ue2/imgsynth2/cpixmap.cpp')
-rw-r--r--ue2/imgsynth2/cpixmap.cpp11
1 files changed, 10 insertions, 1 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
122void CPixMap::write(std::ofstream& out) 125void 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