parent
6b064b526c
commit
64a125b8bd
|
@ -462,15 +462,14 @@ static bool fb_16bpp_bitmap(int x, int y, int width, int height,
|
|||
width = (x1 - x0);
|
||||
|
||||
xoff = x0 - x;
|
||||
yoff = (y0 - y) * bitmap->width;
|
||||
height *= bitmap->width;
|
||||
yoff = y0 - y;
|
||||
|
||||
/* plot the image */
|
||||
pvideo = fb_16bpp_get_xy_loc(x0, y0);
|
||||
|
||||
for (yloop = yoff; yloop < height; yloop += bitmap->width) {
|
||||
for (yloop = 0; yloop < height; yloop++) {
|
||||
for (xloop = 0; xloop < width; xloop++) {
|
||||
abpixel = pixel[yloop + xloop + xoff];
|
||||
abpixel = pixel[((yoff + yloop) * bitmap->width) + xloop + xoff];
|
||||
if ((abpixel & 0xFF000000) != 0) {
|
||||
if ((abpixel & 0xFF000000) != 0xFF000000) {
|
||||
abpixel = fb_plotters_ablend(abpixel,
|
||||
|
|
|
@ -518,15 +518,14 @@ static bool fb_32bpp_bitmap(int x, int y, int width, int height,
|
|||
width = (x1 - x0);
|
||||
|
||||
xoff = x0 - x;
|
||||
yoff = (y0 - y) * bitmap->width;
|
||||
height *= bitmap->width;
|
||||
yoff = y0 - y;
|
||||
|
||||
/* plot the image */
|
||||
pvideo = fb_32bpp_get_xy_loc(x0, y0);
|
||||
|
||||
for (yloop = yoff; yloop < height; yloop += bitmap->width) {
|
||||
for (yloop = 0; yloop < height; yloop++) {
|
||||
for (xloop = 0; xloop < width; xloop++) {
|
||||
abpixel = pixel[yloop + xloop + xoff];
|
||||
abpixel = pixel[((yoff + yloop) * bitmap->width) + xloop + xoff];
|
||||
if ((abpixel & 0xFF000000) != 0) {
|
||||
if ((abpixel & 0xFF000000) != 0xFF000000) {
|
||||
abpixel = fb_plotters_ablend(abpixel,
|
||||
|
|
Loading…
Reference in New Issue