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 | char * __decodeRLE( const void * rleData, int rleBlocks, int outBytes );␊ |
18 | ␊ |
19 | void __drawColorRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char colorIndex );␊ |
20 | void __drawDataRectangle( unsigned short x,␊ |
21 | unsigned short y,␊ |
22 | unsigned short width,␊ |
23 | unsigned short height,␊ |
24 | unsigned char * data );␊ |
25 | int␊ |
26 | __convertImage( unsigned short width,␊ |
27 | unsigned short height,␊ |
28 | const unsigned char *imageData,␊ |
29 | unsigned char **newImageData );␊ |
30 | ␊ |
31 | ␊ |
32 | int __setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel);␊ |
33 | ␊ |
34 | int __getNumberArrayFromProperty( const char * propKey,␊ |
35 | unsigned long numbers[],␊ |
36 | unsigned long maxArrayCount );␊ |
37 | ␊ |
38 | ␊ |
39 | unsigned short␊ |
40 | __getVESAModeWithProperties( unsigned short width,␊ |
41 | unsigned short height,␊ |
42 | unsigned char bitsPerPixel,␊ |
43 | unsigned short attributesSet,␊ |
44 | unsigned short attributesClear,␊ |
45 | VBEModeInfoBlock * outModeInfo,␊ |
46 | unsigned short * vesaVersion );␊ |
47 | ␊ |
48 | void␊ |
49 | __setVideoMode( int mode);␊ |
50 | ␊ |
51 | #endif /* !__BOOT_GRAPHICS_H */␊ |
52 | |