plugin screen width > 255

This commit is contained in:
philippe44
2020-03-02 20:09:11 -08:00
parent b2d90d36c1
commit 1bb4d25bce
4 changed files with 5 additions and 5 deletions

View File

@@ -20,10 +20,10 @@ sub playerSettingsFrame {
my $value;
my $id = unpack('C', $$data_ref);
# New SETD command 0xfe for display width
if ($id == 0xfe) {
$value = (unpack('CC', $$data_ref))[1];
$value = (unpack('Cn', $$data_ref))[1];
if ($value > 100 && $value < 400) {
$client->display->widthOverride(1, $value);
$client->update;