source: grub-pc/trunk/fuentes/include/grub/fbfill.h @ 22

Last change on this file since 22 was 22, checked in by mabarracus, 4 years ago

updated version and apply net.ifnames=0 into debian/rules

File size: 2.1 KB
Line 
1/*
2 *  GRUB  --  GRand Unified Bootloader
3 *  Copyright (C) 2006,2007,2008  Free Software Foundation, Inc.
4 *
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.
9 *
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.
14 *
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/>.
17 */
18
19#ifndef GRUB_FBFILL_HEADER
20#define GRUB_FBFILL_HEADER      1
21
22/* NOTE: This header is private header for fb driver and should not be used
23   in other parts of the code.  */
24
25struct grub_video_fbblit_info;
26
27struct grub_video_fbrender_target
28{
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;
32
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;
44
45  /* Indicates whether the data has been allocated by us and must be freed
46     when render target is destroyed.  */
47  int is_allocated;
48
49  /* Pointer to data.  Can either be in video card memory or in local host's
50     memory.  */
51  grub_uint8_t *data;
52};
53
54void
55grub_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);
58
59#endif /* ! GRUB_FBFILL_HEADER */
Note: See TracBrowser for help on using the repository browser.