10 extern void fb_hPutAlphaMaskMMX(
unsigned char *src,
unsigned char *dest,
int w,
int h,
int src_pitch,
int dest_pitch,
int alpha,
BLENDER *blender,
void *param);
16 static void fb_hPutAlphaMask(
unsigned char *src,
unsigned char *dest,
int w,
int h,
int src_pitch,
int dest_pitch,
int alpha,
BLENDER *blender,
void *param)
25 fb_hPutAlphaMaskMMX(src, dest, w, h, src_pitch, dest_pitch, alpha, blender, param);
31 d = (
unsigned int *)dest;
33 dest_pitch = (dest_pitch >> 2) - w;
47 FBCALL int fb_GfxPut(
void *target,
float fx,
float fy,
unsigned char *src,
int x1,
int y1,
int x2,
int y2,
int coord_type,
int put_mode,
PUTTER *putter,
int alpha,
BLENDER *blender,
void *param)
50 int x, y, w, h, pitch, bpp;
95 pitch = header->
pitch;
99 bpp = header->
old.bpp;
102 w = header->
old.width;
103 h = header->
old.height;
115 if (x1 != 0xFFFF0000) {
118 x1 =
MID(0, x1, w-1);
119 x2 =
MID(0, x2, w-1);
120 y1 =
MID(0, y1, h-1);
121 y2 =
MID(0, y2, h-1);
125 src += (y1 * pitch) + (x1 * bpp);
128 if ((w == 0) || (h == 0) ||
129 (x + w <= context->view_x) || (x >= context->
view_x + context->
view_w) ||
130 (y + h <= context->view_y) || (y >= context->
view_y + context->
view_h))
133 if (y < context->view_y) {
134 src += ((context->
view_y - y) * pitch);
135 h -= (context->
view_y - y);
140 if (x < context->view_x) {
141 src += ((context->
view_x - x) * bpp);
142 w -= (context->
view_x - x);