From bca08c6de2b156cbec90944c809e5e7faecd231d Mon Sep 17 00:00:00 2001 From: manuel Date: Fri, 1 May 2009 20:33:33 +0200 Subject: cwindowsbitmap: seek to bitmap data cpixmap: use copy() instead of accessing array via indices --- ue2/imgsynth2/cwindowsbitmap.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'ue2/imgsynth2/cwindowsbitmap.cpp') diff --git a/ue2/imgsynth2/cwindowsbitmap.cpp b/ue2/imgsynth2/cwindowsbitmap.cpp index ebbdd4c..ddacab9 100644 --- a/ue2/imgsynth2/cwindowsbitmap.cpp +++ b/ue2/imgsynth2/cwindowsbitmap.cpp @@ -58,6 +58,7 @@ void CWindowsBitmap::read(std::ifstream& in) if (m_pixeldata != NULL) delete[] m_pixeldata; m_pixeldata = new uint8_t[m_infoheader.biSizeImage]; + in.seekg(m_fileheader.bfOffBits); in.read(reinterpret_cast(m_pixeldata), m_infoheader.biSizeImage); } -- cgit v1.2.3