Small bitmap-library to use with monocrome displays.
Revision 6:c558f38d07ca, committed 2018-08-31
- Comitter:
- glx
- Date:
- Fri Aug 31 16:10:15 2018 +0000
- Parent:
- 5:481c2e048ca4
- Commit message:
- Bugfix
Changed in this revision
TinyBitmap.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 481c2e048ca4 -r c558f38d07ca TinyBitmap.cpp --- a/TinyBitmap.cpp Fri Aug 31 16:04:15 2018 +0000 +++ b/TinyBitmap.cpp Fri Aug 31 16:10:15 2018 +0000 @@ -10,7 +10,7 @@ _IMAGEHEIGHT = height; _COMMANDBYTES = commandbytes; _BITMAPLAYOUT = bitmaplayout; - _FRAMEBUFFER = &framebuffer; + _FRAMEBUFFER = framebuffer; Bit0 = 0x01; Bit1 = 0x02; @@ -42,7 +42,7 @@ if (offset == 6) modifier = Bit1; if (offset == 7) modifier = Bit0; - *_FRAMEBUFFER[bytecount + _COMMANDBYTES] = (char)(*_FRAMEBUFFER[bytecount + _COMMANDBYTES] | modifier); + _FRAMEBUFFER[bytecount + _COMMANDBYTES] = (char)(_FRAMEBUFFER[bytecount + _COMMANDBYTES] | modifier); } if (_BITMAPLAYOUT == 0x02 && InsideBorders) @@ -62,7 +62,7 @@ if (offset == 1) modifier = Bit1; if (offset == 0) modifier = Bit0; - *_FRAMEBUFFER[bytecount + _COMMANDBYTES] = (char)(*_FRAMEBUFFER[bytecount + _COMMANDBYTES] | modifier); + _FRAMEBUFFER[bytecount + _COMMANDBYTES] = (char)(_FRAMEBUFFER[bytecount + _COMMANDBYTES] | modifier); } if (_BITMAPLAYOUT == 0x04 && InsideBorders) @@ -81,7 +81,7 @@ if (offset == 1) modifier = Bit1; if (offset == 0) modifier = Bit0; - *_FRAMEBUFFER[bytecount + _COMMANDBYTES] = (char)(*_FRAMEBUFFER[bytecount + _COMMANDBYTES] | modifier); + _FRAMEBUFFER[bytecount + _COMMANDBYTES] = (char)(_FRAMEBUFFER[bytecount + _COMMANDBYTES] | modifier); } }