summaryrefslogtreecommitdiff
path: root/glcdgraphics/pbm.c
diff options
context:
space:
mode:
Diffstat (limited to 'glcdgraphics/pbm.c')
-rw-r--r--glcdgraphics/pbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glcdgraphics/pbm.c b/glcdgraphics/pbm.c
index 2c83752..d5c0576 100644
--- a/glcdgraphics/pbm.c
+++ b/glcdgraphics/pbm.c
@@ -182,7 +182,7 @@ bool cPBMFile::Save(cImage & image, const std::string & fileName)
for (int y = 0; y < bitmap->Height(); y++) {
int startpos = y * ((bitmap->Width() + 7) / 8);
for (int x = 0; x < bitmap->Width(); x++) {
- if (bmpdata[ y * bitmap->Width() + x ] == cColor::Black) {
+ if (bmpdata[ y * bitmap->Width() + x ] == cColor::White) {
rawdata[ startpos + (x / 8) ] |= (1 << ( 7 - ( x % 8 ) ));
}
}