Searched refs:subpixel_snap (Results 1 – 3 of 3) sorted by relevance
236 static inline int subpixel_snap( float a ) in subpixel_snap() function443 x[0] = subpixel_snap(v1[0][0] + x_offset - setup->pixel_offset); in try_setup_line()444 x[1] = subpixel_snap(v2[0][0] + x_offset_end - setup->pixel_offset); in try_setup_line()445 x[2] = subpixel_snap(v2[0][0] + x_offset_end - setup->pixel_offset); in try_setup_line()446 x[3] = subpixel_snap(v1[0][0] + x_offset - setup->pixel_offset); in try_setup_line()448 y[0] = subpixel_snap(v1[0][1] + y_offset - setup->pixel_offset) - fixed_width/2; in try_setup_line()449 y[1] = subpixel_snap(v2[0][1] + y_offset_end - setup->pixel_offset) - fixed_width/2; in try_setup_line()450 y[2] = subpixel_snap(v2[0][1] + y_offset_end - setup->pixel_offset) + fixed_width/2; in try_setup_line()451 y[3] = subpixel_snap(v1[0][1] + y_offset - setup->pixel_offset) + fixed_width/2; in try_setup_line()540 x[0] = subpixel_snap(v1[0][0] + x_offset - setup->pixel_offset) - fixed_width/2; in try_setup_line()[all …]
300 subpixel_snap(float a) in subpixel_snap() function375 fixed_width = MAX2(FIXED_ONE, subpixel_snap(size)); in try_setup_point()377 x0 = subpixel_snap(v0[0][0] - setup->pixel_offset) - fixed_width/2; in try_setup_point()378 y0 = subpixel_snap(v0[0][1] - setup->pixel_offset) - fixed_width/2; in try_setup_point()399 const int x0 = subpixel_snap(v0[0][0]); in try_setup_point()400 const int y0 = subpixel_snap(v0[0][1]) - adj; in try_setup_point()407 (subpixel_snap(size) + FIXED_ONE/2 - 1) & ~(FIXED_ONE-1)); in try_setup_point()
57 subpixel_snap(float a) in subpixel_snap() function1047 position->x[0] = subpixel_snap(v0[0][0] - setup->pixel_offset); in calc_fixed_position()1048 position->x[1] = subpixel_snap(v1[0][0] - setup->pixel_offset); in calc_fixed_position()1049 position->x[2] = subpixel_snap(v2[0][0] - setup->pixel_offset); in calc_fixed_position()1052 position->y[0] = subpixel_snap(v0[0][1] - setup->pixel_offset); in calc_fixed_position()1053 position->y[1] = subpixel_snap(v1[0][1] - setup->pixel_offset); in calc_fixed_position()1054 position->y[2] = subpixel_snap(v2[0][1] - setup->pixel_offset); in calc_fixed_position()