Skip to content

Commit

Permalink
ui/canvas/memory/Export.cpp: fix compile error using USE_FB=y
Browse files Browse the repository at this point in the history
  • Loading branch information
ubx committed May 22, 2024
1 parent f10ff9c commit 1ab0961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/canvas/memory/Export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ CopyFromBGRA(void *_dest_pixels, unsigned _dest_pitch, unsigned dest_bpp,
RGB565Color *dest_pixels = reinterpret_cast<RGB565Color *>(_dest_pixels);
const BGRA8Color *src_pixels = src.data;

for (unsigned row = src.height; row > 0;
for (unsigned row = src.size.height; row > 0;
--row, src_pixels += src_pitch, dest_pixels += dest_pitch)
BGRAToRGB565((RGB565Color *)dest_pixels,
(const BGRA8Color *)src_pixels,
Expand Down

0 comments on commit 1ab0961

Please sign in to comment.