1 | /*␊ |
2 | * graphics.h␊ |
3 | * ␊ |
4 | *␊ |
5 | * Created by fassl on 22.12.08.␊ |
6 | * Copyright 2008 __MyCompanyName__. All rights reserved.␊ |
7 | *␊ |
8 | */␊ |
9 | ␊ |
10 | ␊ |
11 | #ifndef __BOOT_GRAPHICS_H␊ |
12 | #define __BOOT_GRAPHICS_H␊ |
13 | ␊ |
14 | #include "bootstruct.h"␊ |
15 | #include "vbe.h"␊ |
16 | ␊ |
17 | int __getVideoMode(void);␊ |
18 | ␊ |
19 | ␊ |
20 | char * __decodeRLE( const void * rleData, int rleBlocks, int outBytes );␊ |
21 | ␊ |
22 | void __drawColorRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char colorIndex );␊ |
23 | void __drawDataRectangle( unsigned short x,␊ |
24 | unsigned short y,␊ |
25 | unsigned short width,␊ |
26 | unsigned short height,␊ |
27 | unsigned char * data );␊ |
28 | int␊ |
29 | __convertImage( unsigned short width,␊ |
30 | unsigned short height,␊ |
31 | const unsigned char *imageData,␊ |
32 | unsigned char **newImageData );␊ |
33 | ␊ |
34 | #if UNUSED␊ |
35 | int __setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel, unsigned short refreshRate );␊ |
36 | #else␊ |
37 | int __setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel);␊ |
38 | #endif␊ |
39 | ␊ |
40 | int __getNumberArrayFromProperty( const char * propKey,␊ |
41 | unsigned long numbers[],␊ |
42 | unsigned long maxArrayCount );␊ |
43 | ␊ |
44 | ␊ |
45 | unsigned short␊ |
46 | __getVESAModeWithProperties( unsigned short width,␊ |
47 | unsigned short height,␊ |
48 | unsigned char bitsPerPixel,␊ |
49 | unsigned short attributesSet,␊ |
50 | unsigned short attributesClear,␊ |
51 | VBEModeInfoBlock * outModeInfo,␊ |
52 | unsigned short * vesaVersion );␊ |
53 | ␊ |
54 | ␊ |
55 | #if UNUSED␊ |
56 | void␊ |
57 | __setVideoMode( int mode, int drawgraphics);␊ |
58 | #else␊ |
59 | void␊ |
60 | __setVideoMode( int mode);␊ |
61 | #endif␊ |
62 | ␊ |
63 | #endif /* !__BOOT_GRAPHICS_H */␊ |
64 | |