Chameleon

Chameleon Commit Details

Date:2011-08-17 01:23:32 (12 years 7 months ago)
Author:Evan Lojewski
Commit:1411
Parents: 1410
Message:cause showInfoBox to not mangle passed in string.
Changes:
M/trunk/i386/boot2/gui.c

File differences

trunk/i386/boot2/gui.c
14741474
14751475
14761476
1477
1477
14781478
1479
14791480
14801481
14811482
......
14851486
14861487
14871488
1489
1490
1491
1492
1493
14881494
14891495
14901496
}
}
void showInfoBox(char *title, char *text)
void showInfoBox(char *title, char *text_orig)
{
char* text;
int i, key, lines, visiblelines;
int currentline=0;
if( !title || !text )
return;
// Create a copy so that we don't mangle the original
text = malloc(strlen(text_orig) + 1);
strcpy(text, text_orig);
position_t pos_title = pos ( gui.infobox.vborder, gui.infobox.vborder );
// calculate number of lines in the title

Archive Download the corresponding diff file

Revision: 1411