~ilya-yanok/ubuntu/precise/grub2/fix-for-948716

« back to all changes in this revision

Viewing changes to include/grub/fbfill.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2009-07-25 19:00:53 UTC
  • mfrom: (1.6.3 upstream)
  • mto: (17.4.13 sid)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20090725190053-uv3lm6ya3zxs77ep
ImportĀ upstreamĀ versionĀ 1.96+20090725

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 
25
 
struct grub_video_fbblit_info;
26
 
 
27
 
struct 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
 
  struct
34
 
  {
35
 
    unsigned int x;
36
 
    unsigned int y;
37
 
    unsigned int width;
38
 
    unsigned int height;
39
 
  } viewport;
40
 
 
41
 
  /* Indicates whether the data has been allocated by us and must be freed
42
 
     when render target is destroyed.  */
43
 
  int is_allocated;
44
 
 
45
 
  /* Pointer to data.  Can either be in video card memory or in local host's
46
 
     memory.  */
47
 
  grub_uint8_t *data;
48
 
};
49
 
 
50
 
void
51
 
grub_video_fbfill (struct grub_video_fbblit_info *dst,
52
 
                   grub_video_color_t color, int x, int y,
53
 
                   int width, int height);
54
 
 
55
 
void
56
 
grub_video_fbfill_direct32 (struct grub_video_fbblit_info *dst,
57
 
                            grub_video_color_t color,  int x, int y,
58
 
                            int width, int height);
59
 
 
60
 
void
61
 
grub_video_fbfill_direct24 (struct grub_video_fbblit_info *dst,
62
 
                            grub_video_color_t color, int x, int y,
63
 
                            int width, int height);
64
 
 
65
 
void
66
 
grub_video_fbfill_direct16 (struct grub_video_fbblit_info *dst,
67
 
                            grub_video_color_t color, int x, int y,
68
 
                            int width, int height);
69
 
 
70
 
void
71
 
grub_video_fbfill_direct8 (struct grub_video_fbblit_info *dst,
72
 
                           grub_video_color_t color, int x, int y,
73
 
                           int width, int height);
74
 
 
75
 
#endif /* ! GRUB_FBFILL_HEADER */