mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-04 00:15:20 -04:00
Merge branch 'rotate_dimensions_when_image_is_rotated' into storageareas
This commit is contained in:
commit
5144d3befb
1 file changed
+12
@@ -80,5 +80,17 @@ class Monitor {
|
||||
|
||||
return( $streamSrc );
|
||||
} // end function etStreamSrc
|
||||
public function Width() {
|
||||
if ( $this->Orientation() == '90' or $this->Orientation() == '270' ) {
|
||||
return $this->{'Height'};
|
||||
}
|
||||
return $this->{'Width'};
|
||||
}
|
||||
public function Height() {
|
||||
if ( $this->Orientation() == '90' or $this->Orientation() == '270' ) {
|
||||
return $this->{'Width'};
|
||||
}
|
||||
return $this->{'Height'};
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user