1 /*************************************************************************** 2 * Copyright (c) 2024 Microsoft Corporation 3 * 4 * This program and the accompanying materials are made available under the 5 * terms of the MIT License which is available at 6 * https://opensource.org/licenses/MIT. 7 * 8 * SPDX-License-Identifier: MIT 9 **************************************************************************/ 10 11 12 /**************************************************************************/ 13 /**************************************************************************/ 14 /** */ 15 /** GUIX Component */ 16 /** */ 17 /** Application Interface (API) */ 18 /** */ 19 /**************************************************************************/ 20 #include "gx_api.h" 21 #include "gx_system.h" 22 #include "gx_display.h" 23 #include "stdio.h" 24 25 VOID _gx_validation_display_buffer_4bpp_grayscale_toggle(GX_CANVAS *canvas, GX_RECTANGLE *dirty); 26 UINT gx_validation_display_driver_4bpp_grayscale_setup(GX_DISPLAY *display); 27 VOID gx_validation_graphics_driver_cleanup_4bpp_grayscale(GX_DISPLAY *display); 28 _gx_validation_display_buffer_4bpp_grayscale_toggle(GX_CANVAS * canvas,GX_RECTANGLE * dirty)29VOID _gx_validation_display_buffer_4bpp_grayscale_toggle(GX_CANVAS *canvas, GX_RECTANGLE *dirty) 30 { 31 GX_PARAMETER_NOT_USED(canvas); 32 GX_PARAMETER_NOT_USED(dirty); 33 } 34 35 36 gx_validation_display_driver_setup_4bpp_grayscale(GX_DISPLAY * display)37UINT gx_validation_display_driver_setup_4bpp_grayscale(GX_DISPLAY *display) 38 { 39 40 /* Initialize the low-level drawing function pointers 41 42 for windows, these are always just the generic funcions, 43 but for some hardware, these will be customized, 44 optimized functions specific to that hardware 45 */ 46 47 48 _gx_display_driver_4bpp_grayscale_setup(display, (VOID *)1, _gx_validation_display_buffer_4bpp_grayscale_toggle); 49 50 51 return(GX_SUCCESS); 52 } 53 gx_validation_graphics_driver_cleanup_4bpp_grayscale(GX_DISPLAY * display)54VOID gx_validation_graphics_driver_cleanup_4bpp_grayscale(GX_DISPLAY *display) 55 { 56 57 /* Do nothing */ 58 GX_PARAMETER_NOT_USED(display); 59 } 60 61