Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions common/src/gx_canvas_glyphs_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,15 @@ UINT index = 0;
xstart = (GX_VALUE)(xstart + glyph -> gx_glyph_advance);
}
} while (string_copy.gx_string_length > 0);

#ifdef GX_UTF8_SUPPORT
#if defined(GX_THAI_GLYPH_SHAPING_SUPPORT)
if (code_list)
{
_gx_system_memory_free((void*)code_list);
}
#endif
#endif
}

/**************************************************************************/
Expand Down
4 changes: 4 additions & 0 deletions common/src/gx_circular_gauge_event_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ UINT status = GX_SUCCESS;
case GX_EVENT_TIMER:
if (event_ptr -> gx_event_payload.gx_event_timer_id == GX_CIRCULAR_GAUGE_TIMER)
{
if (gauge->gx_circular_gauge_current_angle == gauge->gx_circular_gauge_target_angle)
{
break;
}

/* Calculate current angle. */
gauge -> gx_circular_gauge_animation_step++;
Expand Down
10 changes: 5 additions & 5 deletions common/src/gx_display_driver_24xrgb_rotated_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ VOID _gx_display_driver_24xrgb_rotated_setup(GX_DISPLAY *display, VOID *aux_data
_gx_display_driver_24xrgb_setup(display, aux_data, toggle_function);

#if defined(GX_MOUSE_SUPPORT)
display -> gx_display_mouse_capture = GX_NULL;
display -> gx_display_mouse_restore = GX_NULL;
display -> gx_display_mouse_capture = GX_NULL;
display -> gx_display_mouse_restore = GX_NULL;
display -> gx_display_mouse_draw = GX_NULL;
display -> gx_display_driver_drawing_initiate = GX_NULL;
display -> gx_display_driver_drawing_complete = GX_NULL;
display -> gx_display_mouse_position_set = GX_NULL;
display -> gx_display_mouse_enable = GX_NULL;
#if !defined(GX_HARDWARE_MOUSE_SUPPORT)
display->gx_display_mouse_capture = GX_NULL;
display->gx_display_mouse_restore = GX_NULL;
display->gx_display_mouse_draw = GX_NULL;
#endif
#endif

display -> gx_display_rotation_angle = GX_SCREEN_ROTATION_CW;
Expand Down
10 changes: 5 additions & 5 deletions common/src/gx_display_driver_32argb_rotated_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ VOID _gx_display_driver_32argb_rotated_setup(GX_DISPLAY *display, VOID *aux_data
_gx_display_driver_32argb_setup(display, aux_data, toggle_function);

#if defined(GX_MOUSE_SUPPORT)
display -> gx_display_mouse_capture = GX_NULL;
display -> gx_display_mouse_restore = GX_NULL;
display -> gx_display_mouse_capture = GX_NULL;
display -> gx_display_mouse_restore = GX_NULL;
display -> gx_display_mouse_draw = GX_NULL;
display -> gx_display_driver_drawing_initiate = GX_NULL;
display -> gx_display_driver_drawing_complete = GX_NULL;
display -> gx_display_mouse_position_set = GX_NULL;
display -> gx_display_mouse_enable = GX_NULL;
#if !defined(GX_HARDWARE_MOUSE_SUPPORT)
display->gx_display_mouse_capture = GX_NULL;
display->gx_display_mouse_restore = GX_NULL;
display->gx_display_mouse_draw = GX_NULL;
#endif
#endif

display -> gx_display_rotation_angle = GX_SCREEN_ROTATION_CW;
Expand Down
10 changes: 5 additions & 5 deletions common/src/gx_display_driver_565rgb_rotated_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ VOID _gx_display_driver_565rgb_rotated_setup(GX_DISPLAY *display, VOID *aux_data

/* Default initiate and complete function to null for general condition. */
#if defined(GX_MOUSE_SUPPORT)
display -> gx_display_mouse_capture = GX_NULL;
display -> gx_display_mouse_restore = GX_NULL;
display -> gx_display_mouse_capture = GX_NULL;
display -> gx_display_mouse_restore = GX_NULL;
display -> gx_display_mouse_draw = GX_NULL;
display -> gx_display_driver_drawing_initiate = GX_NULL;
display -> gx_display_driver_drawing_complete = GX_NULL;
display -> gx_display_mouse_position_set = GX_NULL;
display -> gx_display_mouse_enable = GX_NULL;
#if !defined(GX_HARDWARE_MOUSE_SUPPORT)
display->gx_display_mouse_capture = GX_NULL;
display->gx_display_mouse_restore = GX_NULL;
display->gx_display_mouse_draw = GX_NULL;
#endif
#endif

// default to 90 degree rotation angle
Expand Down
12 changes: 6 additions & 6 deletions common/src/gx_display_driver_8bit_palette_rotated_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/* */
/* DESCRIPTION */
/* */
/* 8-bit palettte color format display driver rotated setup routine. */
/* 8-bit palette color format display driver rotated setup routine. */
/* */
/* INPUT */
/* */
Expand Down Expand Up @@ -70,15 +70,15 @@ VOID _gx_display_driver_8bit_palette_rotated_setup(GX_DISPLAY *display, VOID
_gx_display_driver_8bit_palette_setup(display, aux_data, toggle_function);

#if defined(GX_MOUSE_SUPPORT)
display -> gx_display_mouse_capture = GX_NULL;
display -> gx_display_mouse_restore = GX_NULL;
display -> gx_display_mouse_capture = GX_NULL;
display -> gx_display_mouse_restore = GX_NULL;
display -> gx_display_mouse_draw = GX_NULL;
display -> gx_display_driver_drawing_initiate = GX_NULL;
display -> gx_display_driver_drawing_complete = GX_NULL;
display -> gx_display_mouse_position_set = GX_NULL;
display -> gx_display_mouse_enable = GX_NULL;
#if !defined(GX_HARDWARE_MOUSE_SUPPORT)
display->gx_display_mouse_capture = GX_NULL;
display->gx_display_mouse_restore = GX_NULL;
display->gx_display_mouse_draw = GX_NULL;
#endif
#endif

display -> gx_display_rotation_angle = GX_SCREEN_ROTATION_CW;
Expand Down