mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-24 00:53:39 +01:00
vncserver: refactor
This commit is contained in:
parent
59f990b372
commit
cfac63aec5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user