Fork of Silabs MemoryLCD library
Dependents: demoUI whrmDemoUI Host_Software_MAX32664GWEB_HR_EXTENDED Host_Software_MAX32664GWEC_SpO2_HR-_EXTE ... more
C++ library for Sharp Microelectronics 1.28 inch LCD TFT, LS013B7DH03, SPI bus. Forked from Silicon Labs MemoryLCD display driver.
Revision 8:39206d1e11f7, committed 2015-07-30
- Comitter:
- stevew817
- Date:
- Thu Jul 30 08:54:55 2015 +0000
- Parent:
- 7:6cf0aa7bc0fc
- Child:
- 9:2441ef131ab8
- Commit message:
- typo.
Changed in this revision
| BufferedDisplay.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BufferedDisplay.cpp Thu Jul 30 08:51:58 2015 +0000
+++ b/BufferedDisplay.cpp Thu Jul 30 08:54:55 2015 +0000
@@ -108,7 +108,7 @@
* * startY: starting position to apply bitmap in vertical direction (0 = topmost)
*/
void BufferedDisplay::showBMP(const uint8_t* bitmap, const uint32_t bmpWidth, const uint32_t bmpHeight, const uint32_t startX, const uint32_t startY) {
- uint32_t bitmapLine = 0, y = startY, bytesPerLine = ((bmpWidth >= (DISPLAY_WIDTH - startX)) ? (DISPLAY_WIDTH - startX) : bmpWidth) / 8;
+ uint32_t bmpLine = 0, y = startY, bytesPerLine = ((bmpWidth >= (DISPLAY_WIDTH - startX)) ? (DISPLAY_WIDTH - startX) : bmpWidth) / 8;
/* Apply constraints */
if((bmpWidth & 0x07) != 0) return;
@@ -121,16 +121,16 @@
/* Copy over bytes to the framebuffer, do not write outside framebuffer boundary */
for(; y < DISPLAY_HEIGHT; y++) {
/* Check that we are not writing more than the BMP height */
- if(bitmapLine >= bitmapHeight) break;
+ if(bmpLine >= bmpHeight) break;
- /* Copy over one line (bitmapLine) from the BMP file to the corresponding line (y) in the pixel buffer */
+ /* Copy over one line (bmpLine) from the BMP file to the corresponding line (y) in the pixel buffer */
memcpy( (void*) &(((uint8_t*)_pixelBuffer)[((y * DISPLAY_WIDTH) + startX) / 8]),
- (const void*) &(bitmap[bitmapLine * (bmpWidth / 8)]),
+ (const void*) &(bitmap[bmpLine * (bmpWidth / 8)]),
bytesPerLine);
/* Set dirty status for the line we just overwrote */
_dirtyRows[y / DISPLAY_BUFFER_TYPE_SIZE] |= (1 << (y % DISPLAY_BUFFER_TYPE_SIZE));
- bitmapLine++;
+ bmpLine++;
}
return;