120 if(rect->
right < x) {
181 void *src_image,
short swidth,
short sheight)
189 if((dwidth <= swidth) && (dheight <= sheight)) {
190 for(j=0; j<dheight; j++) {
191 int sy = (sheight * j)/dheight;
192 for(i=0; i<dwidth; i++) {
193 int sx = (swidth * i)/dwidth;
194 DTPRINTF(0x02,
"(%d, %d) < (%d, %d)\n", i, j, sx, sy);
195 dst[(dwidth * j) + i] = src[(swidth * sy) + sx];
void correct_rect(struct st_rect *rect)
矩形を修正する
struct st_surface sur
面の大きさ
void resize_image(void *dst_image, short dwidth, short dheight, void *src_image, short swidth, short sheight)
イメージデータのサイズを変更する
struct st_position pos
左上頂点の位置
short empty_rect(struct st_rect *rect)
矩形が0か調べる
int is_point_in_box(short x, short y, struct st_box *box)
座標が四角の内部か調べる
int is_point_in_rect(short x, short y, struct st_rect *rect)
座標が矩形の内部か調べる
void box2rect(struct st_rect *rect, struct st_box *box)
box -> rect 変換
void and_rect(struct st_rect *a, struct st_rect *s1, struct st_rect *s2)
2つの矩形のアンドを求める
unsigned short PIXEL_DATA
$gsc グラフィックデバイスは24ビットカラー