Chameleon

Chameleon Commit Details

Date:2010-08-05 10:54:29 (8 years 11 months ago)
Author:Tamás Kosárszky
Commit:308
Parents: 307
Message:
Changes:
M/trunk/i386/boot2/graphics.c
M/trunk/i386/boot2/gui.c

File differences

trunk/i386/boot2/graphics.c
3636
3737
3838
39
40
3941
4042
4143
......
11271129
11281130
11291131
1130
1132
1133
1134
1135
11311136
11321137
11331138
* for spinning disk
*/
static int currentIndicator = 0;
static int oldScreenWidth = 0;
static int oldScreenHeight = 0;
int previewTotalSectors = 0;
int previewLoadedSectors = 0;
params[1] = 25;
}
setVESATextMode( params[0], params[1], 4 );
if (params[0] != oldScreenWidth && params[1] != oldScreenHeight)
{
setVESATextMode( params[0], params[1], 4 );
}
bootArgs->Video.v_display = VGA_TEXT_MODE;
}
trunk/i386/boot2/gui.c
17861786
17871787
17881788
1789
17891790
17901791
17911792
......
18071808
18081809
18091810
1811
1812
1813
1814
18101815
18111816
18121817
18131818
18141819
18151820
1816
1821
1822
1823
1824
18171825
18181826
1819
1827
18201828
18211829
18221830
int pos;
int length;
const char *dummyVal;
int oldScreenWidth, oldScreenHeight;
bool legacy_logo;
uint16_t x, y;
screen_params[1] = DEFAULT_SCREEN_HEIGHT;
}
// Save current screen resolution.
oldScreenWidth = gui.screen.width;
oldScreenHeight = gui.screen.height;
gui.screen.width = screen_params[0];
gui.screen.height = screen_params[1];
// find best matching vesa mode for our requested width & height
getGraphicModeParams(screen_params);
if (bootArgs->Video.v_display == VGA_TEXT_MODE) {
// Set graphics mode if the booter was in text mode or the screen resolution has changed.
if (bootArgs->Video.v_display == VGA_TEXT_MODE
|| (screen_params[0] != oldScreenWidth && screen_params[1] != oldScreenHeight) )
{
setVideoMode(GRAPHICS_MODE, 0);
}
if (getValueForKey("-checkers", &dummyVal, &length, &bootInfo->bootConfig)) {
drawCheckerBoard();
} else {

Archive Download the corresponding diff file

Revision: 308