Lines Matching defs:dst
48 rect_to_pipe_box(struct pipe_box *dst, const RECT *src)
50 dst->x = src->left;
51 dst->y = src->top;
52 dst->z = 0;
53 dst->width = src->right - src->left;
54 dst->height = src->bottom - src->top;
55 dst->depth = 1;
59 pipe_box_to_rect(RECT *dst, const struct pipe_box *src)
61 dst->left = src->x;
62 dst->right = src->x + src->width;
63 dst->top = src->y;
64 dst->bottom = src->y + src->height;
102 rect_to_pipe_box_clamp(struct pipe_box *dst, const RECT *src)
104 rect_to_pipe_box(dst, src);
106 if (dst->width <= 0 || dst->height <= 0) {
108 dst->width = MAX2(dst->width, 0);
109 dst->height = MAX2(dst->height, 0);
116 rect_to_pipe_box_flip(struct pipe_box *dst, const RECT *src)
118 rect_to_pipe_box(dst, src);
120 if (dst->width >= 0 && dst->height >= 0)
122 if (dst->width < 0) dst->width = -dst->width;
123 if (dst->height < 0) dst->height = -dst->height;
128 rect_to_pipe_box_xy_only(struct pipe_box *dst, const RECT *src)
132 dst->x = src->left;
133 dst->y = src->top;
134 dst->width = src->right - src->left;
135 dst->height = src->bottom - src->top;
139 rect_to_pipe_box_xy_only_clamp(struct pipe_box *dst, const RECT *src)
141 rect_to_pipe_box_xy_only(dst, src);
143 if (dst->width <= 0 || dst->height <= 0) {
145 dst->width = MAX2(dst->width, 0);
146 dst->height = MAX2(dst->height, 0);
153 rect_to_g3d_u_rect(struct u_rect *dst, const RECT *src)
157 dst->x0 = src->left;
158 dst->x1 = src->right;
159 dst->y0 = src->top;
160 dst->y1 = src->bottom;
164 d3dbox_to_pipe_box(struct pipe_box *dst, const D3DBOX *src)
170 dst->x = src->Left;
171 dst->y = src->Top;
172 dst->z = src->Front;
173 dst->width = src->Right - src->Left;
174 dst->height = src->Bottom - src->Top;
175 dst->depth = src->Back - src->Front;