Searched refs:subpixel_snap (Results 1 – 3 of 3) sorted by relevance
236 static inline int subpixel_snap( float a ) in subpixel_snap() function447 x[0] = subpixel_snap(v1[0][0] + x_offset - pixel_offset); in try_setup_line()448 x[1] = subpixel_snap(v2[0][0] + x_offset_end - pixel_offset); in try_setup_line()449 x[2] = subpixel_snap(v2[0][0] + x_offset_end - pixel_offset); in try_setup_line()450 x[3] = subpixel_snap(v1[0][0] + x_offset - pixel_offset); in try_setup_line()452 y[0] = subpixel_snap(v1[0][1] + y_offset - pixel_offset) - fixed_width/2; in try_setup_line()453 y[1] = subpixel_snap(v2[0][1] + y_offset_end - pixel_offset) - fixed_width/2; in try_setup_line()454 y[2] = subpixel_snap(v2[0][1] + y_offset_end - pixel_offset) + fixed_width/2; in try_setup_line()455 y[3] = subpixel_snap(v1[0][1] + y_offset - pixel_offset) + fixed_width/2; in try_setup_line()544 x[0] = subpixel_snap(v1[0][0] + x_offset - pixel_offset) - fixed_width/2; in try_setup_line()[all …]
308 subpixel_snap(float a) in subpixel_snap() function386 fixed_width = MAX2(FIXED_ONE, subpixel_snap(size)); in try_setup_point()388 x0 = subpixel_snap(v0[0][0] - pixel_offset) - fixed_width/2; in try_setup_point()389 y0 = subpixel_snap(v0[0][1] - pixel_offset) - fixed_width/2; in try_setup_point()410 const int x0 = subpixel_snap(v0[0][0]); in try_setup_point()411 const int y0 = subpixel_snap(v0[0][1]) - adj; in try_setup_point()418 (subpixel_snap(size) + FIXED_ONE/2 - 1) & ~(FIXED_ONE-1)); in try_setup_point()
57 subpixel_snap(float a) in subpixel_snap() function1066 position->x[0] = subpixel_snap(v0[0][0] - pixel_offset); in calc_fixed_position()1067 position->x[1] = subpixel_snap(v1[0][0] - pixel_offset); in calc_fixed_position()1068 position->x[2] = subpixel_snap(v2[0][0] - pixel_offset); in calc_fixed_position()1071 position->y[0] = subpixel_snap(v0[0][1] - pixel_offset); in calc_fixed_position()1072 position->y[1] = subpixel_snap(v1[0][1] - pixel_offset); in calc_fixed_position()1073 position->y[2] = subpixel_snap(v2[0][1] - pixel_offset); in calc_fixed_position()