7 static int gfx_get(
void *target,
float fx1,
float fy1,
float fx2,
float fy2,
unsigned char *dest,
int coord_type,
FBARRAY *array,
int usenewheader )
11 int x1, y1, x2, y2, w, h, pitch;
26 if ((x1 < context->view_x) || (y1 < context->view_y) ||
37 header->
old.width = w;
38 header->
old.height = h;
53 if ((array->
size > 0) && ((intptr_t)dest + (pitch * h) > (intptr_t)array->
data + array->
size))
59 for (; y1 <= y2; y1++) {
70 FBCALL int fb_GfxGet(
void *target,
float fx1,
float fy1,
float fx2,
float fy2,
unsigned char *dest,
int coord_type,
FBARRAY *array)
72 return gfx_get( target, fx1, fy1, fx2, fy2, dest, coord_type, array,
TRUE );
76 FBCALL int fb_GfxGetQB(
void *target,
float fx1,
float fy1,
float fx2,
float fy2,
unsigned char *dest,
int coord_type,
FBARRAY *array)
78 return gfx_get( target, fx1, fy1, fx2, fy2, dest, coord_type, array,
FALSE );