|
@@ -32,13 +32,16 @@ sub playerSettingsFrame {
|
|
|
$value = (unpack('Cn', $$data_ref))[1];
|
|
|
if ($value > 100 && $value < 400) {
|
|
|
$prefs->client($client)->set('width', $value);
|
|
|
+
|
|
|
+ my $height = (unpack('Cnn', $$data_ref))[2];
|
|
|
+ $prefs->client($client)->set('height', $height || 0);
|
|
|
+
|
|
|
$client->display->modes($client->display->build_modes);
|
|
|
$client->display->widthOverride(1, $value);
|
|
|
$client->update;
|
|
|
+
|
|
|
+ $log->info("Setting player $value" . "x" . "$height for ", $client->name);
|
|
|
}
|
|
|
- my $height = (unpack('Cnn', $$data_ref))[2];
|
|
|
- $prefs->client($client)->set('height', $height || 0);
|
|
|
- $log->info("Setting player $value" . "x" . "$height for ", $client->name);
|
|
|
}
|
|
|
|
|
|
$client->SUPER::playerSettingsFrame($data_ref);
|