1 2 /*************************************************************************** 3 * Copyright (c) 2024 Microsoft Corporation 4 * 5 * This program and the accompanying materials are made available under the 6 * terms of the MIT License which is available at 7 * https://opensource.org/licenses/MIT. 8 * 9 * SPDX-License-Identifier: MIT 10 **************************************************************************/ 11 12 13 /**************************************************************************/ 14 /**************************************************************************/ 15 /** */ 16 /** GUIX Component */ 17 /** */ 18 /** Synergy Simulation Display Management (Display) */ 19 /** */ 20 /**************************************************************************/ 21 22 23 #define GX_SOURCE_CODE 24 25 26 /* Include necessary system files. */ 27 28 #include "gx_api.h" 29 #include "gx_display.h" 30 #include "gx_dave2d_simulation_display_driver.h" 31 32 /**************************************************************************/ 33 /* */ 34 /* FUNCTION RELEASE */ 35 /* */ 36 /* _gx_dave2d_simulation_display_driver_8bit_palette_setup */ 37 /* PORTABLE C */ 38 /* 6.4.0 */ 39 /* AUTHOR */ 40 /* */ 41 /* Ting Zhu, Microsoft Corporation */ 42 /* */ 43 /* DESCRIPTION */ 44 /* */ 45 /* This function initiates 8bit palette synergy simulation driver. */ 46 /* */ 47 /* INPUT */ 48 /* */ 49 /* display The display control block */ 50 /* aux_data Driver-defined auxiliary data */ 51 /* toggle_function Driver-defined screen toggle */ 52 /* function */ 53 /* */ 54 /* OUTPUT */ 55 /* */ 56 /* None */ 57 /* */ 58 /* CALLS */ 59 /* */ 60 /* None */ 61 /* */ 62 /* CALLED BY */ 63 /* */ 64 /* GUIX Internal Code */ 65 /* */ 66 /* RELEASE HISTORY */ 67 /* */ 68 /* DATE NAME DESCRIPTION */ 69 /* */ 70 /* 12-31-2023 Ting Zhu Initial Version 6.4.0 */ 71 /* */ 72 /**************************************************************************/ _gx_dave2d_simulation_display_driver_8bit_palette_setup(GX_DISPLAY * display,VOID * aux_data,VOID (* toggle_function)(struct GX_CANVAS_STRUCT * canvas,GX_RECTANGLE * dirty_area))73VOID _gx_dave2d_simulation_display_driver_8bit_palette_setup(GX_DISPLAY *display, VOID *aux_data, 74 VOID (*toggle_function)(struct GX_CANVAS_STRUCT *canvas, GX_RECTANGLE *dirty_area)) 75 { 76 _gx_display_driver_8bit_palette_setup(display, aux_data, toggle_function); 77 78 display -> gx_display_driver_4bit_glyph_draw = _gx_dave2d_simulation_display_driver_8bpp_glyph_4bit_draw; 79 display -> gx_display_driver_1bit_glyph_draw = _gx_dave2d_simulation_display_driver_8bpp_glyph_1bit_draw; 80 } 81 82