Root/
Source at commit 1146 created 12 years 10 months ago. By azimutz, Sync with trunk (r1145). Add nVidia dev id's, 0DF4 for "GeForce GT 450M" (issue 99) and 1251 for "GeForce GTX 560M" (thanks to oSxFr33k for testing). | |
---|---|
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 "vbe.h"␊ |
13 | ␊ |
14 | #ifndef __BOOT_GRAPHICS_H␊ |
15 | #define __BOOT_GRAPHICS_H␊ |
16 | ␊ |
17 | #define DEFAULT_SCREEN_WIDTH 1024␊ |
18 | #define DEFAULT_SCREEN_HEIGHT 768␊ |
19 | ␊ |
20 | ␊ |
21 | unsigned long lookUpCLUTIndex( unsigned char index, unsigned char depth );␊ |
22 | ␊ |
23 | void drawColorRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char colorIndex );␊ |
24 | void drawDataRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char * data );␊ |
25 | int convertImage( unsigned short width, unsigned short height, const unsigned char *imageData, unsigned char **newImageData );␊ |
26 | ␊ |
27 | int initGraphicsMode ();␊ |
28 | ␊ |
29 | void drawCheckerBoard();␊ |
30 | ␊ |
31 | void blendImage(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t *data);␊ |
32 | ␊ |
33 | void drawCheckerBoard();␊ |
34 | void blendImage(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t *data);␊ |
35 | ␊ |
36 | ␊ |
37 | char *getVBEInfoString();␊ |
38 | char *getVBEModeInfoString();␊ |
39 | void getGraphicModeParams(unsigned long params[]);␊ |
40 | ␊ |
41 | int setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel, unsigned short refreshRate );␊ |
42 | ␊ |
43 | int getNumberArrayFromProperty( const char * propKey,␊ |
44 | ␉␉␉␉␉␉ unsigned long numbers[],␊ |
45 | ␉␉␉␉␉␉ unsigned long maxArrayCount );␊ |
46 | ␊ |
47 | ␊ |
48 | unsigned short␊ |
49 | getVESAModeWithProperties( unsigned short width,␊ |
50 | ␉␉␉␉␉␉ unsigned short height,␊ |
51 | ␉␉␉␉␉␉ unsigned char bitsPerPixel,␊ |
52 | ␉␉␉␉␉␉ unsigned short attributesSet,␊ |
53 | ␉␉␉␉␉␉ unsigned short attributesClear,␊ |
54 | ␉␉␉␉␉␉ VBEModeInfoBlock * outModeInfo,␊ |
55 | ␉␉␉␉␉␉ unsigned short * vesaVersion );␊ |
56 | ␊ |
57 | ␊ |
58 | ␊ |
59 | #endif /* !__BOOT_GRAPHICS_H */␊ |
60 |