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

...for hw blit on apollo/kronos hardware


Origin commit data
------------------
Commit: 95f11ce7af
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-26 (Tue, 26 Jan 2016)
This commit is contained in:
Michael Liebmann
2016-01-26 06:16:29 +01:00
parent 3f8b67f627
commit b4a84c445e
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);