Root/
Source at commit 307 created 12 years 11 months ago. By ifabio, merge changes from trunk (929). Also merge the module changes from Azimutz branche (fix compile error) Also edited the info.plist into AHCIPortInjector.kext: http://forum.voodooprojects.org/index.php/topic,1170.0.html | |
---|---|
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 | #include "boot.h"␊ |
11 | #include "bootstruct.h"␊ |
12 | #include "graphic_utils.h"␊ |
13 | ␊ |
14 | ␊ |
15 | #ifndef __BOOT_GRAPHICS_H␊ |
16 | #define __BOOT_GRAPHICS_H␊ |
17 | ␊ |
18 | #define DEFAULT_SCREEN_WIDTH 1024␊ |
19 | #define DEFAULT_SCREEN_HEIGHT 768␊ |
20 | ␊ |
21 | int loadPngImage(const char *filename, uint16_t *width, uint16_t *height, uint8_t **imageData);␊ |
22 | ␊ |
23 | unsigned long lookUpCLUTIndex( unsigned char index, unsigned char depth );␊ |
24 | ␊ |
25 | void drawColorRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char colorIndex );␊ |
26 | void drawDataRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char * data );␊ |
27 | int convertImage( unsigned short width, unsigned short height, const unsigned char *imageData, unsigned char **newImageData );␊ |
28 | ␊ |
29 | int initGraphicsMode ();␊ |
30 | ␊ |
31 | void drawCheckerBoard();␊ |
32 | ␊ |
33 | void blendImage(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t *data);␊ |
34 | ␊ |
35 | void drawCheckerBoard();␊ |
36 | void blendImage(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t *data);␊ |
37 | ␊ |
38 | int loadEmbeddedPngImage(uint8_t *pngData, int pngSize, uint16_t *width, uint16_t *height, uint8_t **imageData);␊ |
39 | ␊ |
40 | ␊ |
41 | char *getVBEInfoString();␊ |
42 | char *getVBEModeInfoString();␊ |
43 | void getGraphicModeParams(unsigned long params[]);␊ |
44 | ␊ |
45 | #endif /* !__BOOT_GRAPHICS_H */␊ |
46 |