vncserver: refactor

This commit is contained in:
Dmitry Maksyoma 2021-08-09 23:00:51 +12:00
parent 59f990b372
commit cfac63aec5

View File

@ -33,9 +33,8 @@
&ParseAndProcessCliOptions(); &ParseAndProcessCliOptions();
&CheckGeometryAndDepth(); &CheckGeometryAndDepthAreSensible();
# Create the user's vnc directory if necessary.
&CreateDotVncDir(); &CreateDotVncDir();
$displayNumber = &DetectDisplayNumberFromCliArgs() || $displayNumber = &DetectDisplayNumberFromCliArgs() ||
@ -148,11 +147,11 @@ sub LoadConfig {
} }
# #
# CheckGeometryAndDepth simply makes sure that the geometry and depth values # CheckGeometryAndDepthAreSensible simply makes sure that the geometry and depth
# are sensible. # values are sensible.
# #
sub CheckGeometryAndDepth sub CheckGeometryAndDepthAreSensible
{ {
if ($geometry =~ /^(\d+)x(\d+)$/) { if ($geometry =~ /^(\d+)x(\d+)$/) {
$width = $1; $height = $2; $width = $1; $height = $2;