From b03b7611a300d3004b445be45e07c40ae0d13032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Neuwirth?= Date: Wed, 29 Apr 2009 23:00:30 +0200 Subject: assimilation --- ue2/imgsynth2/cpixmap.cpp | 11 ++++++++++- ue2/imgsynth2/cpixmap.h | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'ue2') 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) istr2 >> character; istr2 >> mode; istr2 >> colors; - m_fileheader.xpmColors[character][mode] = colors; + //m_fileheader.xpmColors[character][mode] = colors; + m_fileheader.xpmColors[character] = colors; getline( in, str, '"' ); } + + /* colors.replace(0,1,"0x"); colors.insert(4, " 0x"); colors.insert(9," 0x"); @@ -121,6 +124,12 @@ void CPixMap::read(std::ifstream& in) void CPixMap::write(std::ofstream& out) { + out<<"/* XPM */"< > xpmColors; - + // std::map > xpmColors; + // std::map xpmColors; } PIXMAP_FILEHEADER; -- cgit v1.2.3