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 #include "gx_dave2d_simulation_display_driver.h"
25 
26 UINT gx_validation_dave2d_display_driver_setup_24xrgb(GX_DISPLAY *display);
27 UINT gx_validation_dave2d_display_driver_setup_24xrgb_rotated(GX_DISPLAY *display);
28 
_gx_validation_display_buffer_24xrgb_toggle(GX_CANVAS * canvas,GX_RECTANGLE * dirty)29 static VOID _gx_validation_display_buffer_24xrgb_toggle(GX_CANVAS *canvas, GX_RECTANGLE *dirty)
30 {
31     GX_PARAMETER_NOT_USED(canvas);
32     GX_PARAMETER_NOT_USED(dirty);
33 }
34 
35 
gx_validation_dave2d_display_driver_setup_24xrgb(GX_DISPLAY * display)36 UINT gx_validation_dave2d_display_driver_setup_24xrgb(GX_DISPLAY *display)
37 {
38 
39     /* Initialize the low-level drawing function pointers
40 
41        for windows, these are always just the generic funcions,
42        but for some hardware, these will be customized,
43        optimized functions specific to that hardware
44      */
45 
46 
47     _gx_dave2d_simulation_display_driver_24xrgb_setup(display, (VOID *)1, _gx_validation_display_buffer_24xrgb_toggle);
48 
49 
50     return(GX_SUCCESS);
51 }
52 
gx_validation_dave2d_display_driver_setup_24xrgb_rotated(GX_DISPLAY * display)53 UINT gx_validation_dave2d_display_driver_setup_24xrgb_rotated(GX_DISPLAY *display)
54 {
55 
56     /* Initialize the low-level drawing function pointers
57 
58        for windows, these are always just the generic funcions,
59        but for some hardware, these will be customized,
60        optimized functions specific to that hardware
61      */
62 
63 
64     _gx_dave2d_simulation_display_driver_24xrgb_rotated_setup(display, (VOID *)1, _gx_validation_display_buffer_24xrgb_toggle);
65 
66 
67     return(GX_SUCCESS);
68 }
69 
70 /*static VOID gx_validation_graphics_driver_cleanup_24xrgb(GX_DISPLAY *display)
71    {
72 
73    }*/
74 
75