Temp-fix for menu-palette problem - FIXME: Introduces a memory leak
This commit is contained in:
parent
e0d9e224ec
commit
92ccd4f71c
1 changed files with 2 additions and 0 deletions
|
@ -468,9 +468,11 @@ global void ColorCycle32(void)
|
|||
*/
|
||||
global void VideoSetPalette(const VMemType* palette)
|
||||
{
|
||||
#if 0 // ARI: FIXME: This ruins menu palettes, when loaded via default.cm (introduce refcnt?)
|
||||
if( Pixels ) {
|
||||
free(Pixels);
|
||||
}
|
||||
#endif
|
||||
Pixels=(VMemType*)palette;
|
||||
SetPlayersPalette();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue