GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: gx_display_driver_8bit_palette_rotated_setup.c Lines: 22 22 100.0 %
Date: 2026-03-06 19:21:09 Branches: 0 0 - %

Line Branch Exec Source
1
2
/***************************************************************************
3
 * Copyright (c) 2024 Microsoft Corporation
4
 * Copyright (c) 2026-present Eclipse ThreadX contributors
5
 *
6
 * This program and the accompanying materials are made available under the
7
 * terms of the MIT License which is available at
8
 * https://opensource.org/licenses/MIT.
9
 *
10
 * SPDX-License-Identifier: MIT
11
 **************************************************************************/
12
13
14
/**************************************************************************/
15
/**************************************************************************/
16
/**                                                                       */
17
/** GUIX Component                                                        */
18
/**                                                                       */
19
/**   Display Management (Display)                                        */
20
/**                                                                       */
21
/**************************************************************************/
22
23
24
#define GX_SOURCE_CODE
25
26
27
/* Include necessary system files.  */
28
29
#include "gx_api.h"
30
#include "gx_display.h"
31
32
/**************************************************************************/
33
/*                                                                        */
34
/*  FUNCTION                                               RELEASE        */
35
/*                                                                        */
36
/*    _gx_display_driver_8bit_palette_rotated_setup       PORTABLE C      */
37
/*                                                           6.1.4        */
38
/*  AUTHOR                                                                */
39
/*                                                                        */
40
/*    Kenneth Maxwell, Microsoft Corporation                              */
41
/*                                                                        */
42
/*  DESCRIPTION                                                           */
43
/*                                                                        */
44
/*    8-bit palettte color format display driver rotated setup routine.   */
45
/*                                                                        */
46
/*  INPUT                                                                 */
47
/*                                                                        */
48
/*    display                               The display control block     */
49
/*    aux_data                              Driver-defined auxiliary data */
50
/*    toggle_function                       Driver-defined screen toggle  */
51
/*                                            function                    */
52
/*                                                                        */
53
/*  OUTPUT                                                                */
54
/*                                                                        */
55
/*    None                                                                */
56
/*                                                                        */
57
/*  CALLS                                                                 */
58
/*                                                                        */
59
/*    None                                                                */
60
/*                                                                        */
61
/*  CALLED BY                                                             */
62
/*                                                                        */
63
/*    GUIX Internal Code                                                  */
64
/*                                                                        */
65
/**************************************************************************/
66
28
VOID     _gx_display_driver_8bit_palette_rotated_setup(GX_DISPLAY *display, VOID *aux_data,
67
                                                       VOID (*toggle_function)(struct GX_CANVAS_STRUCT *canvas,
68
                                                                               GX_RECTANGLE *dirty_area))
69
{
70
28
    _gx_display_driver_8bit_palette_setup(display, aux_data, toggle_function);
71
72
#if defined(GX_MOUSE_SUPPORT)
73
    display -> gx_display_mouse_capture = GX_NULL;
74
    display -> gx_display_mouse_restore = GX_NULL;
75
    display -> gx_display_mouse_capture = GX_NULL;
76
    display -> gx_display_mouse_restore = GX_NULL;
77
    display -> gx_display_mouse_draw = GX_NULL;
78
    display -> gx_display_driver_drawing_initiate = GX_NULL;
79
    display -> gx_display_driver_drawing_complete = GX_NULL;
80
    display -> gx_display_mouse_position_set = GX_NULL;
81
    display -> gx_display_mouse_enable = GX_NULL;
82
#endif
83
84
28
    display -> gx_display_rotation_angle                       = GX_SCREEN_ROTATION_CW;
85
86
28
    display -> gx_display_driver_canvas_copy                   = _gx_display_driver_8bpp_rotated_canvas_copy;
87
28
    display -> gx_display_driver_simple_line_draw              = _gx_display_driver_8bpp_rotated_simple_line_draw;
88
28
    display -> gx_display_driver_horizontal_line_draw          = _gx_display_driver_8bpp_rotated_horizontal_line_draw;
89
28
    display -> gx_display_driver_vertical_line_draw            = _gx_display_driver_8bpp_rotated_vertical_line_draw;
90
28
    display -> gx_display_driver_horizontal_pattern_line_draw  = _gx_display_driver_8bpp_rotated_horizontal_pattern_line_draw;
91
28
    display -> gx_display_driver_horizontal_pixelmap_line_draw = _gx_display_driver_8bpp_rotated_horizontal_pixelmap_line_draw;
92
28
    display -> gx_display_driver_vertical_pattern_line_draw    = _gx_display_driver_8bpp_rotated_vertical_pattern_line_draw;
93
28
    display -> gx_display_driver_pixel_write                   = _gx_display_driver_8bpp_rotated_pixel_write;
94
28
    display -> gx_display_driver_block_move                    = _gx_display_driver_8bpp_rotated_block_move;
95
96
28
    display -> gx_display_driver_pixelmap_draw                 = _gx_display_driver_8bpp_rotated_pixelmap_draw;
97
28
    display -> gx_display_driver_pixelmap_rotate               = _gx_display_driver_8bpp_rotated_pixelmap_rotate;
98
28
    display -> gx_display_driver_polygon_fill                  = _gx_display_driver_generic_rotated_polygon_fill;
99
100
#if defined(GX_ARC_DRAWING_SUPPORT)
101
28
    display -> gx_display_driver_circle_fill                   = _gx_display_driver_generic_rotated_circle_fill;
102
28
    display -> gx_display_driver_pie_fill                      = _gx_display_driver_generic_rotated_pie_fill;
103
28
    display -> gx_display_driver_arc_fill                      = _gx_display_driver_generic_rotated_arc_fill;
104
28
    display -> gx_display_driver_ellipse_fill                  = _gx_display_driver_generic_rotated_ellipse_fill;
105
#endif
106
107
#if (GX_PALETTE_MODE_AA_TEXT_COLORS == 8)
108
28
    display -> gx_display_driver_4bit_glyph_draw               = _gx_display_driver_8bpp_rotated_glyph_3bit_draw;
109
#else
110
    display -> gx_display_driver_4bit_glyph_draw               = _gx_display_driver_8bpp_rotated_glyph_4bit_draw;
111
#endif
112
28
    display -> gx_display_driver_1bit_glyph_draw               = _gx_display_driver_8bpp_rotated_glyph_1bit_draw;
113
28
}
114