]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/common/gfx_fb_stub.c
Remove $FreeBSD$: two-line .h pattern
[FreeBSD/FreeBSD.git] / stand / common / gfx_fb_stub.c
1 /*-
2  * Copyright 2021 Toomas Soome <tsoome@freebsd.org>
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24  * SUCH DAMAGE.
25  */
26
27 #include <sys/cdefs.h>
28 __FBSDID("$FreeBSD$");
29
30 /*
31  * Generic gfx stubs.
32  */
33
34 #include <sys/types.h>
35 #include <pnglite.h>
36 #include "bootstrap.h"
37 #include "gfx_fb.h"
38
39 font_list_t fonts = STAILQ_HEAD_INITIALIZER(fonts);
40 teken_gfx_t gfx_state = { 0 };
41
42 void
43 gfx_fb_setpixel(uint32_t x __unused, uint32_t y __unused)
44 {
45 }
46
47 void
48 gfx_fb_drawrect(uint32_t x1 __unused, uint32_t y1 __unused,
49     uint32_t x2 __unused, uint32_t y2 __unused, uint32_t fill __unused)
50 {
51 }
52
53 void
54 gfx_term_drawrect(uint32_t x1 __unused, uint32_t y1 __unused,
55     uint32_t x2 __unused, uint32_t y2 __unused)
56 {
57 }
58
59 void
60 gfx_fb_line(uint32_t x0 __unused, uint32_t y0 __unused,
61     uint32_t x1 __unused, uint32_t y1 __unused, uint32_t w __unused)
62 {
63 }
64
65 void
66 gfx_fb_bezier(uint32_t x0 __unused, uint32_t y0 __unused,
67     uint32_t x1 __unused, uint32_t y1 __unused, uint32_t x2 __unused,
68     uint32_t y2 __unused, uint32_t w __unused)
69 {
70 }
71
72 int
73 gfx_fb_putimage(png_t *png __unused, uint32_t ux1 __unused,
74     uint32_t uy1 __unused, uint32_t ux2 __unused, uint32_t uy2 __unused,
75     uint32_t flags __unused)
76 {
77         return (1);
78 }