Lines Matching defs:ux2
1620 gfx_term_drawrect(uint32_t ux1, uint32_t uy1, uint32_t ux2, uint32_t uy2)
1642 ux2--;
1648 r.tr_end.tp_col = ux2 + 1;
1658 x2 = ux2 * vf_width + gfx_state.tg_origin.tp_col;
1672 x1 = ux2 * vf_width + gfx_state.tg_origin.tp_col;
1698 x1 = ux2 * vf_width + gfx_state.tg_origin.tp_col;
1700 x2 = ux2 * vf_width + gfx_state.tg_origin.tp_col;
1708 x1 = ux2 * vf_width + gfx_state.tg_origin.tp_col;
1711 x2 = ux2 * vf_width + gfx_state.tg_origin.tp_col;
1719 gfx_fb_putimage(png_t *png, uint32_t ux1, uint32_t uy1, uint32_t ux2,
1769 * If 0 was passed for either ux2 or uy2, then calculate the missing
1773 if (ux2 == 0 && uy2 == 0) {
1775 ux2 = ux1 + png->width;
1778 } else if (ux2 == 0) {
1779 /* Set ux2 from uy2/uy1 to maintain aspect ratio */
1780 ux2 = ux1 + (png->width * (uy2 - uy1)) / png->height;
1782 /* Set uy2 from ux2/ux1 to maintain aspect ratio */
1783 uy2 = uy1 + (png->height * (ux2 - ux1)) / png->width;
1786 if (ux2 > gfx_state.tg_fb.fb_width ||
1793 fwidth = ux2 - ux1;
1808 ux2 = gfx_state.tg_fb.fb_width - gfx_state.tg_origin.tp_col;
1809 ux1 = ux2 - fwidth;
1821 if (ux1 >= ux2 || uy1 >= uy2) {
1849 gfx_fb_drawrect(ux1, uy1, ux2, uy2, 0);