Fix cross compilation (e.g. on Darwin). Following changes to make.tmpl,
[AROS.git] / arch / all-pc / boot / grub2-aros / include / grub / fbfill.h
blob35a80b820bd3733a5233801eb4812d4dbb2b0a06
1 /*
2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2006,2007,2008 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef GRUB_FBFILL_HEADER
20 #define GRUB_FBFILL_HEADER 1
22 /* NOTE: This header is private header for fb driver and should not be used
23 in other parts of the code. */
25 struct grub_video_fbblit_info;
27 struct grub_video_fbrender_target
29 /* Copy of the screen's mode info structure, except that width, height and
30 mode_type has been re-adjusted to requested render target settings. */
31 struct grub_video_mode_info mode_info;
33 /* We should not draw outside of viewport. */
34 grub_video_rect_t viewport;
35 /* Set region to make a re-draw of a part of the screen. */
36 grub_video_rect_t region;
37 /* Should be set to 0 if the viewport is inside of the region. */
38 int area_enabled;
39 /* Internal structure - intersection of the viewport and the region. */
40 grub_video_rect_t area;
41 /* Internal values - offsets from the left top point of the viewport. */
42 int area_offset_x;
43 int area_offset_y;
45 /* Indicates whether the data has been allocated by us and must be freed
46 when render target is destroyed. */
47 int is_allocated;
49 /* Pointer to data. Can either be in video card memory or in local host's
50 memory. */
51 grub_uint8_t *data;
54 void
55 grub_video_fb_fill_dispatch (struct grub_video_fbblit_info *target,
56 grub_video_color_t color, int x, int y,
57 unsigned int width, unsigned int height);
59 #endif /* ! GRUB_FBFILL_HEADER */