Chameleon

Chameleon Commit Details

Date:2010-08-17 01:14:41 (13 years 7 months ago)
Author:Tamás Kosárszky
Commit:371
Parents: 370
Message:Freeing up resources used by gui.devicelist before re-creating its window buffer.
Changes:
M/trunk/i386/boot2/gui.c

File differences

trunk/i386/boot2/gui.c
417417
418418
419419
420
421
422
423
424
425
426
427
428
429
430
431
420432
421433
422434
......
650662
651663
652664
653
665
654666
655667
656668
return 0;
}
int freeWindowBuffer( window_t *window )
{
if (window->pixmap && window->pixmap->pixels)
{
free(window->pixmap->pixels);
free(window->pixmap);
return 0;
}
return 1;
}
void fillPixmapWithColor(pixmap_t *pm, uint32_t color)
{
int x,y;
if (gui.devicelist.pixmap)
{
free(gui.devicelist.pixmap);
freeWindowBuffer(&gui.devicelist);
createWindowBuffer(&gui.devicelist);
}
}

Archive Download the corresponding diff file

Revision: 371