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