Chameleon

Chameleon Svn Source Tree

Root/branches/meklort/i386/boot2/graphics.h

Source at commit 533 created 13 years 7 months ago.
By meklort, GUI module should now work in the four main cases (combo of embededtheme and /Extra/Themes). Only tested on my machines.
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
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
21unsigned long lookUpCLUTIndex( unsigned char index, unsigned char depth );
22
23void drawColorRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char colorIndex );
24void drawDataRectangle( unsigned short x, unsigned short y, unsigned short width, unsigned short height, unsigned char * data );
25int convertImage( unsigned short width, unsigned short height, const unsigned char *imageData, unsigned char **newImageData );
26
27int initGraphicsMode ();
28
29void drawCheckerBoard();
30
31void blendImage(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t *data);
32
33void drawCheckerBoard();
34void blendImage(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t *data);
35
36
37char *getVBEInfoString();
38char *getVBEModeInfoString();
39void getGraphicModeParams(unsigned long params[]);
40
41int setVESAGraphicsMode( unsigned short width, unsigned short height, unsigned char bitsPerPixel, unsigned short refreshRate );
42
43int getNumberArrayFromProperty( const char * propKey,
44 unsigned long numbers[],
45 unsigned long maxArrayCount );
46
47
48
49#endif /* !__BOOT_GRAPHICS_H */
50

Archive Download this file

Revision: 533