mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-05 15:17:37 +03:00
fix(cppcheck): more clang format fix
This commit is contained in:
parent
e6f6f14b37
commit
7bfb3af0da
@ -805,7 +805,8 @@ void GfxRenderer::drawBitmap1Bit(const Bitmap& bitmap, const int x, const int y,
|
|||||||
free(rowBytes);
|
free(rowBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GfxRenderer::drawTransparentBitmap(const Bitmap& bitmap, const int x, const int y, const int w, const int h) const {
|
void GfxRenderer::drawTransparentBitmap(const Bitmap& bitmap, const int x, const int y, const int w,
|
||||||
|
const int h) const {
|
||||||
// Similar to drawBitmap1Bit but strictly skips 1s (white) in the source 1-bit data
|
// Similar to drawBitmap1Bit but strictly skips 1s (white) in the source 1-bit data
|
||||||
// The Bitmap reader returns 2-bit packed data where 0-2=Black and 3=White for 1-bit sources
|
// The Bitmap reader returns 2-bit packed data where 0-2=Black and 3=White for 1-bit sources
|
||||||
|
|
||||||
|
|||||||
@ -78,7 +78,8 @@ class GfxRenderer {
|
|||||||
float cropY = 0) const;
|
float cropY = 0) const;
|
||||||
void drawBitmap1Bit(const Bitmap& bitmap, const int x, const int y, const int maxWidth, const int maxHeight) const;
|
void drawBitmap1Bit(const Bitmap& bitmap, const int x, const int y, const int maxWidth, const int maxHeight) const;
|
||||||
void drawTransparentBitmap(const Bitmap& bitmap, const int x, const int y, const int w, const int h) const;
|
void drawTransparentBitmap(const Bitmap& bitmap, const int x, const int y, const int w, const int h) const;
|
||||||
void drawRoundedBitmap(const Bitmap& bitmap, const int x, const int y, const int w, const int h, const int radius) const;
|
void drawRoundedBitmap(const Bitmap& bitmap, const int x, const int y, const int w, const int h,
|
||||||
|
const int radius) const;
|
||||||
void draw2BitImage(const uint8_t data[], int x, int y, int w, int h) const;
|
void draw2BitImage(const uint8_t data[], int x, int y, int w, int h) const;
|
||||||
void fillPolygon(const int* xPoints, const int* yPoints, int numPoints, bool state = true) const;
|
void fillPolygon(const int* xPoints, const int* yPoints, int numPoints, bool state = true) const;
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
#include "BasicElements.h"
|
#include "BasicElements.h"
|
||||||
|
|
||||||
|
#include <GfxRenderer.h>
|
||||||
|
|
||||||
#include "Bitmap.h"
|
#include "Bitmap.h"
|
||||||
#include "ListElement.h"
|
#include "ListElement.h"
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "ThemeTypes.h"
|
#include "ThemeTypes.h"
|
||||||
#include <GfxRenderer.h>
|
|
||||||
|
|
||||||
namespace ThemeEngine {
|
namespace ThemeEngine {
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user