From: Gregory S. <wo...@tr...> - 2008-02-21 03:40:37
|
Turns out Windows has this stupid concept of "text" and "binary" files, and std i/o fstreams default to the wrong one. The patch attached fixes all the ofstreams and ifstreams I could find, to use std::ios::binary when opening the streams. This solves BMP export problems (and color table import/export, I have to assume) in Windows. Gregory |