mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 13:07:03 +03:00
remove unused code + plugin update
This commit is contained in:
@@ -1045,7 +1045,7 @@ static void visu_handler( u8_t *data, int len) {
|
|||||||
// little trick to clean the taller screens when switching visu
|
// little trick to clean the taller screens when switching visu
|
||||||
if (visu.row >= displayer.height) GDS_ClearExt(display, false, true, visu.col, visu.row, visu.col + visu.width - 1, visu.row + visu.height - 1);
|
if (visu.row >= displayer.height) GDS_ClearExt(display, false, true, visu.col, visu.row, visu.col + visu.width - 1, visu.row + visu.height - 1);
|
||||||
|
|
||||||
if ((visu.mode = pkt->which) != 0) {
|
if (visu.mode) {
|
||||||
// these will be overidden if necessary
|
// these will be overidden if necessary
|
||||||
visu.col = visu.border = 0;
|
visu.col = visu.border = 0;
|
||||||
visu.rotate = false;
|
visu.rotate = false;
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ sub build_modes {
|
|||||||
my $width_low = ($artwork->{'enable'} && $artwork->{'x'} && ($artwork->{'y'} >= 32 || $disp_width - $artwork->{'x'} > 32)) ? $artwork->{'x'} : $disp_width;
|
my $width_low = ($artwork->{'enable'} && $artwork->{'x'} && ($artwork->{'y'} >= 32 || $disp_width - $artwork->{'x'} > 32)) ? $artwork->{'x'} : $disp_width;
|
||||||
|
|
||||||
my $small_VU = $cprefs->get('small_VU');
|
my $small_VU = $cprefs->get('small_VU');
|
||||||
my $spectrum = sanitizeSpectrum($cprefs->get('sprectrum'));
|
my $spectrum = sanitizeSpectrum($cprefs->get('spectrum'));
|
||||||
|
|
||||||
my $small_spectrum_pos = { x => $width - int ($spectrum->{small}->{size} * $width / 100),
|
my $small_spectrum_pos = { x => $width - int ($spectrum->{small}->{size} * $width / 100),
|
||||||
width => int ($spectrum->{small}->{size} * $width / 100),
|
width => int ($spectrum->{small}->{size} * $width / 100),
|
||||||
|
|||||||
@@ -73,8 +73,9 @@ sub onNotification {
|
|||||||
my $request = shift;
|
my $request = shift;
|
||||||
my $client = $request->client || return;
|
my $client = $request->client || return;
|
||||||
|
|
||||||
if ($client->isa('Plugins::SqueezeESP32::Player')) {
|
foreach my $player ($client->syncGroupActiveMembers) {
|
||||||
$client->update_artwork();
|
next unless $player->isa('Plugins::SqueezeESP32::Player');
|
||||||
|
$player->update_artwork;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,6 @@
|
|||||||
<name>PLUGIN_SQUEEZEESP32</name>
|
<name>PLUGIN_SQUEEZEESP32</name>
|
||||||
<description>PLUGIN_SQUEEZEESP32_DESC</description>
|
<description>PLUGIN_SQUEEZEESP32_DESC</description>
|
||||||
<module>Plugins::SqueezeESP32::Plugin</module>
|
<module>Plugins::SqueezeESP32::Plugin</module>
|
||||||
<version>0.210</version>
|
<version>0.211</version>
|
||||||
<creator>Philippe</creator>
|
<creator>Philippe</creator>
|
||||||
</extensions>
|
</extensions>
|
||||||
|
|||||||
Reference in New Issue
Block a user