mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 05:35:02 -05:00
peakmeter: Fix warning on some hosted targets
Change-Id: Ieae0b08a2f747955ad3e392fbff90884dc4265ef
This commit is contained in:
parent
a3398a2143
commit
2127906384
1 changed files with 8 additions and 3 deletions
|
|
@ -46,7 +46,9 @@
|
||||||
#include "pcm_record.h"
|
#include "pcm_record.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !(CONFIG_PLATFORM & PLATFORM_HOSTED)
|
||||||
static bool pm_playback = true; /* selects between playback and recording peaks */
|
static bool pm_playback = true; /* selects between playback and recording peaks */
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct meter_scales scales[NB_SCREENS];
|
static struct meter_scales scales[NB_SCREENS];
|
||||||
|
|
||||||
|
|
@ -1074,9 +1076,12 @@ static void peak_meter_draw(struct screen *display, struct meter_scales *scales,
|
||||||
|
|
||||||
#ifdef HAVE_BACKLIGHT
|
#ifdef HAVE_BACKLIGHT
|
||||||
/* cliplight */
|
/* cliplight */
|
||||||
if ((pm_clip_left || pm_clip_right) &&
|
if ((pm_clip_left || pm_clip_right) &&
|
||||||
global_settings.cliplight &&
|
global_settings.cliplight
|
||||||
!pm_playback)
|
#if !(CONFIG_PLATFORM & PLATFORM_HOSTED)
|
||||||
|
&& !pm_playback
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
/* if clipping, cliplight setting on and in recording screen */
|
/* if clipping, cliplight setting on and in recording screen */
|
||||||
if (global_settings.cliplight <= 2)
|
if (global_settings.cliplight <= 2)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue