mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Doom: prevent division by zero
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22097 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ddd82d6ab5
commit
da0e0e564a
1 changed files with 4 additions and 1 deletions
|
@ -714,7 +714,10 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
|
||||
rb->lcd_clear_display();
|
||||
|
||||
systemvol= rb->global_settings->volume-rb->global_settings->volume%((rb->sound_max(SOUND_VOLUME)-rb->sound_min(SOUND_VOLUME))/15);
|
||||
int mod = (rb->sound_max(SOUND_VOLUME)-rb->sound_min(SOUND_VOLUME))/15;
|
||||
if(mod == 0)
|
||||
mod = rb->global_settings->volume;
|
||||
systemvol= rb->global_settings->volume-rb->global_settings->volume;
|
||||
general_translucency = default_translucency; // phares
|
||||
|
||||
backlight_force_on();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue