projects
/
hackover2013-badge-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep for v1.0.0
[hackover2013-badge-firmware.git]
/
drivers
/
displays
/
tft
/
bmp.c
diff --git
a/drivers/displays/tft/bmp.c
b/drivers/displays/tft/bmp.c
index
a378a86
..
7554645
100644
(file)
--- a/
drivers/displays/tft/bmp.c
+++ b/
drivers/displays/tft/bmp.c
@@
-122,7
+122,7
@@
bmp_error_t bmpParseBitmap(uint16_t x, uint16_t y, FIL file)
// Render pixel
// ToDo: This is a brutally slow way of rendering bitmaps ...
// update to pass one row of data at a time
// Render pixel
// ToDo: This is a brutally slow way of rendering bitmaps ...
// update to pass one row of data at a time
- drawPixel(x + px, y + py - 1,
draw
RGB24toRGB565(buffer[(px * 3) + 2], buffer[(px * 3) + 1], buffer[(px * 3)]));
+ drawPixel(x + px, y + py - 1,
colors
RGB24toRGB565(buffer[(px * 3) + 2], buffer[(px * 3) + 1], buffer[(px * 3)]));
}
}
}
}
@@
-326,7
+326,7
@@
bmp_error_t bmpSaveScreenshot(const char* filename)
for (x = 0; x < lcdWidth; x++)
{
rgb565 = lcdGetPixel(x, y - 1); // Get RGB565 pixel
for (x = 0; x < lcdWidth; x++)
{
rgb565 = lcdGetPixel(x, y - 1); // Get RGB565 pixel
- bgra32 =
draw
RGB565toBGRA32(rgb565); // Convert RGB565 to 24-bit color
+ bgra32 =
colors
RGB565toBGRA32(rgb565); // Convert RGB565 to 24-bit color
r = (bgra32 & 0x00FF0000) >> 16;
g = (bgra32 & 0x0000FF00) >> 8;
b = (bgra32 & 0x000000FF);
r = (bgra32 & 0x00FF0000) >> 16;
g = (bgra32 & 0x0000FF00) >> 8;
b = (bgra32 & 0x000000FF);
This page took
0.02838 seconds
and
4
git commands to generate.