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:
stan 2005-07-12 13:38:42 +00:00
parent 8a710e3a89
commit be01ec16a9
1 changed files with 2 additions and 1 deletions

View File

@ -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 )