2 * Copyright © 2016 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
24 ao_vga_enable(int active);
26 /* Active frame buffer */
27 #define AO_VGA_WIDTH 320
28 #define AO_VGA_HEIGHT 240
30 /* Pad on the right so that there are zeros on the output after the line */
31 #define AO_VGA_HPAD 64
33 /* Pad above so there's a scanline of zeros before the screen starts */
36 #define AO_VGA_STRIDE ((AO_VGA_WIDTH + AO_VGA_HPAD) >> AO_SHIFT)
38 extern uint32_t ao_vga_fb_all[AO_VGA_STRIDE * (AO_VGA_HEIGHT + AO_VGA_VPAD)];
40 #define ao_vga_fb (ao_vga_fb_all + AO_VGA_STRIDE)
42 extern const struct ao_bitmap ao_vga_bitmap;
44 #endif /* _AO_VGA_H_ */