summaryrefslogtreecommitdiffstats
path: root/ue2/imgsynth2
diff options
context:
space:
mode:
authorGünther Neuwirth <e0626638@student.tuwien.ac.at>2009-04-29 23:00:30 +0200
committerGünther Neuwirth <e0626638@student.tuwien.ac.at>2009-04-29 23:00:30 +0200
commitb03b7611a300d3004b445be45e07c40ae0d13032 (patch)
tree28131a6a5fb0f0d73bea0b2481dbf2e1a58b3f48 /ue2/imgsynth2
parentf2872bfd97f9297b1446f1fd6595a32dc509f301 (diff)
downloadooprog-b03b7611a300d3004b445be45e07c40ae0d13032.tar.gz
ooprog-b03b7611a300d3004b445be45e07c40ae0d13032.tar.bz2
ooprog-b03b7611a300d3004b445be45e07c40ae0d13032.zip
assimilation
Diffstat (limited to 'ue2/imgsynth2')
-rw-r--r--ue2/imgsynth2/cpixmap.cpp11
-rw-r--r--ue2/imgsynth2/cpixmap.h4
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
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
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;