mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
(prevent being able to divide by 0)
This commit is contained in:
parent
88924904ae
commit
1ba8f0ec72
@ -183,7 +183,7 @@ static const res_net_decode_info spelunk2_sprite_decode_info =
|
||||
static void m62_amplify_contrast(palette_t *palette, UINT32 numcolors)
|
||||
{
|
||||
// m62 palette is very dark, so amplify default contrast
|
||||
UINT32 i, ymax=0;
|
||||
UINT32 i, ymax=1;
|
||||
if (!numcolors) numcolors = palette_get_num_colors(palette);
|
||||
|
||||
// find maximum brightness
|
||||
|
Loading…
Reference in New Issue
Block a user