Home
last modified time | relevance | path

Searched refs:dist (Results 1 – 7 of 7) sorted by relevance

/GUIX-v6.2.1/common/src/
Dgx_radial_progress_bar_value_calculate.c79 INT dist; in _gx_radial_progress_bar_value_calculate() local
89 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()
Dgx_radial_slider_angle_calculate.c78 INT dist; in _gx_radial_slider_angle_calculate() local
92 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()
Dgx_scroll_wheel_selected_set.c78 INT dist; in _gx_scroll_wheel_selected_set() local
101 dist = wheel -> gx_scroll_wheel_selected_row - row; in _gx_scroll_wheel_selected_set()
105dist = 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()
Dgx_radial_progress_bar_event_process.c89 INT dist; in _gx_radial_progress_bar_event_process() local
131 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()
Dgx_display_driver_8bit_palette_native_color_get.c75 ULONG dist; in _gx_display_driver_8bit_palette_native_color_get() local
94dist = (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()
Dgx_image_reader_nearest_palette_color_get.c76 ULONG dist; in _gx_image_reader_nearest_palette_color_get() local
98dist = (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()
Dgx_radial_slider_event_process.c89 INT dist; in _gx_radial_slider_pen_down_event_process() local
120dist = (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()