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