CFrameBuffer::paintBoxRel2Buf(): Align buffer at 4 byte boundary...

...for hw blit on apollo/kronos hardware
This commit is contained in:
M. Liebmann
2016-01-26 06:16:29 +01:00
parent 2c23f339d3
commit 95f11ce7af
3 changed files with 45 additions and 20 deletions

View File

@@ -46,6 +46,8 @@ typedef struct gradientData_t
fb_pixel_t* boxBuf;
bool direction;
int mode;
int x;
int dx;
} gradientData_struct_t;
#define CORNER_NONE 0x0
@@ -206,7 +208,7 @@ class CFrameBuffer : public sigc::trackable
};
void paintPixel(int x, int y, const fb_pixel_t col);
fb_pixel_t* paintBoxRel2Buf(const int dx, const int dy, const fb_pixel_t col, fb_pixel_t* buf = NULL, int radius = 0, int type = CORNER_ALL);
fb_pixel_t* paintBoxRel2Buf(const int dx, const int dy, const int w_align, const int offs_align, const fb_pixel_t col, fb_pixel_t* buf = NULL, int radius = 0, int type = CORNER_ALL);
fb_pixel_t* paintBoxRel(const int x, const int y, const int dx, const int dy, const fb_pixel_t col, gradientData_t *gradientData, int radius = 0, int type = CORNER_ALL);
void paintBoxRel(const int x, const int y, const int dx, const int dy, const fb_pixel_t col, int radius = 0, int type = CORNER_ALL);