/*************************************************************************** * Copyright (c) 2024 Microsoft Corporation * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ /**************************************************************************/ /** */ /** GUIX Component */ /** */ /** Display Management (Display) */ /** */ /**************************************************************************/ #define GX_SOURCE_CODE /* Include necessary system files. */ #include "gx_api.h" #include "gx_display.h" /**************************************************************************/ /* */ /* FUNCTION RELEASE */ /* */ /* _gx_display_driver_1555xrgb_setup PORTABLE C */ /* 6.1 */ /* AUTHOR */ /* */ /* Kenneth Maxwell, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* Generic 16-bit 1555XRGB color format display driver setup routine. */ /* */ /* INPUT */ /* */ /* display The display control block */ /* aux_data Driver-defined auxiliary data */ /* toggle_function Driver-defined screen toggle */ /* function */ /* */ /* OUTPUT */ /* */ /* _gx_display_driver_565rgb_setup 565rgb format display driver */ /* setup routine */ /* */ /* CALLS */ /* */ /* None */ /* */ /* CALLED BY */ /* */ /* GUIX Internal Code */ /* */ /* RELEASE HISTORY */ /* */ /* DATE NAME DESCRIPTION */ /* */ /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */ /* 09-30-2020 Kenneth Maxwell Modified comment(s), */ /* resulting in version 6.1 */ /* */ /**************************************************************************/ VOID _gx_display_driver_1555xrgb_setup(GX_DISPLAY *display, VOID *aux_data, VOID (*toggle_function)(struct GX_CANVAS_STRUCT *canvas, GX_RECTANGLE *dirty_area)) { _gx_display_driver_565rgb_setup(display, aux_data, toggle_function); display -> gx_display_color_format = GX_COLOR_FORMAT_1555XRGB; display -> gx_display_driver_native_color_get = _gx_display_driver_1555xrgb_native_color_get; display -> gx_display_driver_canvas_blend = _gx_display_driver_1555xrgb_canvas_blend; display -> gx_display_driver_pixel_blend = _gx_display_driver_1555xrgb_pixel_blend; display -> gx_display_driver_pixelmap_rotate = _gx_display_driver_1555xrgb_pixelmap_rotate; display -> gx_display_driver_pixelmap_draw = _gx_display_driver_1555xrgb_pixelmap_draw; display -> gx_display_driver_pixelmap_blend = _gx_display_driver_1555xrgb_pixelmap_blend; #if defined(GX_SOFTWARE_DECODER_SUPPORT) display -> gx_display_driver_jpeg_draw = _gx_display_driver_1555xrgb_jpeg_draw; display -> gx_display_driver_png_draw = _gx_display_driver_1555xrgb_png_draw; #endif }