Searched refs:dist (Results 1 – 7 of 7) sorted by relevance
79 INT dist; in _gx_radial_progress_bar_value_calculate() local89 dist = (x_dist * x_dist) + (y_dist * y_dist); in _gx_radial_progress_bar_value_calculate()90 dist = (INT)_gx_utility_math_sqrt((UINT)dist); in _gx_radial_progress_bar_value_calculate()92 if (!dist) in _gx_radial_progress_bar_value_calculate()99 x_dist = GX_FIXED_VAL_MAKE(x_dist) / dist; in _gx_radial_progress_bar_value_calculate()106 y_dist = GX_FIXED_VAL_MAKE(y_dist) / dist; in _gx_radial_progress_bar_value_calculate()
78 INT dist; in _gx_radial_slider_angle_calculate() local92 dist = (x_dist * x_dist) + (y_dist * y_dist); in _gx_radial_slider_angle_calculate()93 dist = (INT)_gx_utility_math_sqrt((UINT)dist); in _gx_radial_slider_angle_calculate()95 if (!dist) in _gx_radial_slider_angle_calculate()103 x_dist = GX_FIXED_VAL_MAKE(x_dist) / dist; in _gx_radial_slider_angle_calculate()110 y_dist = (GX_FIXED_VAL_MAKE(y_dist)) / dist; in _gx_radial_slider_angle_calculate()
78 INT dist; in _gx_scroll_wheel_selected_set() local101 dist = wheel -> gx_scroll_wheel_selected_row - row; in _gx_scroll_wheel_selected_set()105 … dist = wheel -> gx_scroll_wheel_selected_row + wheel -> gx_scroll_wheel_total_rows - row; in _gx_scroll_wheel_selected_set()110 dist = wheel -> gx_scroll_wheel_selected_row - row; in _gx_scroll_wheel_selected_set()114 …wheel -> gx_scroll_wheel_animation_speed = (GX_VALUE)(dist * wheel -> gx_scroll_wheel_row_height) … in _gx_scroll_wheel_selected_set()115 … wheel -> gx_scroll_wheel_shift_error = (GX_BYTE)(dist * wheel -> gx_scroll_wheel_row_height) % 10; in _gx_scroll_wheel_selected_set()
89 INT dist; in _gx_radial_progress_bar_event_process() local131 dist = (x_dist * x_dist) + (y_dist * y_dist); in _gx_radial_progress_bar_event_process()132 dist = (INT)_gx_utility_math_sqrt((UINT)dist); in _gx_radial_progress_bar_event_process()134 …if ((dist <= (INT)(info -> gx_radial_progress_bar_info_radius + (info -> gx_radial_progress_bar_in… in _gx_radial_progress_bar_event_process()135 …(dist >= (INT)(info -> gx_radial_progress_bar_info_radius - (info -> gx_radial_progress_bar_info_s… in _gx_radial_progress_bar_event_process()
75 ULONG dist; in _gx_display_driver_8bit_palette_native_color_get() local94 … dist = (ULONG)((red_dist * red_dist) + (green_dist * green_dist) + (blue_dist * blue_dist)); in _gx_display_driver_8bit_palette_native_color_get()96 if (dist < nearest_dist) in _gx_display_driver_8bit_palette_native_color_get()98 nearest_dist = dist; in _gx_display_driver_8bit_palette_native_color_get()
76 ULONG dist; in _gx_image_reader_nearest_palette_color_get() local98 … dist = (ULONG)((red_dist * red_dist) + (green_dist * green_dist) + (blue_dist * blue_dist)); in _gx_image_reader_nearest_palette_color_get()100 if (dist < nearest_dist) in _gx_image_reader_nearest_palette_color_get()102 nearest_dist = dist; in _gx_image_reader_nearest_palette_color_get()
89 INT dist; in _gx_radial_slider_pen_down_event_process() local120 …dist = (INT)_gx_utility_math_sqrt((UINT)((xpos - info -> gx_radial_slider_info_xcenter) * (xpos - … in _gx_radial_slider_pen_down_event_process()123 … ((info -> gx_radial_slider_info_radius - info -> gx_radial_slider_info_track_width / 2 <= dist) && in _gx_radial_slider_pen_down_event_process()124 … (dist <= info -> gx_radial_slider_info_radius + info -> gx_radial_slider_info_track_width / 2)) in _gx_radial_slider_pen_down_event_process()