Bug 131 - Fixed problem with rotated images.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1481 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
8a710e3a89
commit
be01ec16a9
|
@ -832,7 +832,6 @@ void Image::Rotate( int angle )
|
|||
return;
|
||||
}
|
||||
static unsigned char rotate_buffer[ZM_MAX_IMAGE_SIZE];
|
||||
int line_bytes = width+colours;
|
||||
switch( angle )
|
||||
{
|
||||
case 90 :
|
||||
|
@ -841,6 +840,7 @@ void Image::Rotate( int angle )
|
|||
width = height;
|
||||
height = temp;
|
||||
|
||||
int line_bytes = width*colours;
|
||||
unsigned char *s_ptr = buffer;
|
||||
|
||||
if ( colours == 1 )
|
||||
|
@ -904,6 +904,7 @@ void Image::Rotate( int angle )
|
|||
width = height;
|
||||
height = temp;
|
||||
|
||||
int line_bytes = width*colours;
|
||||
unsigned char *s_ptr = buffer+size;
|
||||
|
||||
if ( colours == 1 )
|
||||
|
|
Loading…
Reference in New Issue