Chameleon

Chameleon Commit Details

Date:2010-08-17 01:03:31 (10 years 3 months ago)
Author:Tamás Kosárszky
Commit:370
Parents: 369
Message:Added recalculation of gui.maxdevices when leaving "Scan Single Drive" mode.
Changes:
M/trunk/i386/boot2/boot.c
M/trunk/i386/boot2/gui.c
M/trunk/i386/boot2/gui.h

File differences

trunk/i386/boot2/boot.c
373373
374374
375375
376
376377
377378
378379
bvChain = newFilteredBVChain(0x80, 0xFF, allowBVFlags, denyBVFlags, &gDeviceCount);
setBootGlobals(bvChain);
loadThemeValues(&bootInfo->themeConfig);
}
continue;
}
trunk/i386/boot2/gui.c
447447
448448
449449
450
450
451451
452452
453453
......
647647
648648
649649
650
651
652
653
654
655
650656
651657
652658
......
692698
693699
694700
695
701
696702
697703
698704
memcpy( gui.backbuffer->pixels, gui.screen.pixmap->pixels, gui.backbuffer->width * gui.backbuffer->height * 4 );
}
void loadThemeValues(config_file_t *theme, bool overide)
void loadThemeValues(config_file_t *theme)
{
unsigned int screen_width = gui.screen.width;
unsigned int screen_height = gui.screen.height;
if(getColorForKey("font_console_color", &color, theme))
gui.screen.font_console_color = (color & 0x00FFFFFF);
if (gui.devicelist.pixmap)
{
free(gui.devicelist.pixmap);
createWindowBuffer(&gui.devicelist);
}
}
int initGUI(void)
// load graphics otherwise fail and return
if (loadGraphics() == 0) {
loadThemeValues(&bootInfo->themeConfig, true);
loadThemeValues(&bootInfo->themeConfig);
colorFont(&font_small, gui.screen.font_small_color);
colorFont(&font_console, gui.screen.font_console_color);
trunk/i386/boot2/gui.h
134134
135135
136136
137
137138
138139
139140
int initGUI();
void drawBackground();
void loadThemeValues(config_file_t *theme);
void drawDeviceIcon(BVRef device, pixmap_t *buffer, position_t p, bool isSelected);
void drawDeviceList(int start, int end, int selection);
void drawProgressBar(pixmap_t *blendInto, uint16_t width, position_t p, uint8_t progress);

Archive Download the corresponding diff file

Revision: 370