Changeset 1181:72873be9485d


Ignore:
Timestamp:
03/15/09 19:50:36 (3 years ago)
Author:
niam
Branch:
default
Message:

fixed compilation issues

Location:
trunk
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r1178 r1181  
    1515CPPFLAGS:=-I./include @CPPFLAGS@ 
    1616LDFLAGS:=-L./ @LDFLAGS@ 
    17 CFLAGS:=@CFLAGS@ 
     17CFLAGS:=@CFLAGS@ @DEFS@ 
    1818 
    1919########################################################### 
  • trunk/include/libdodo/graphicsDraw.h

    r1179 r1181  
    3535#ifdef IMAGEMAGICK_EXT 
    3636#include <libdodo/types.h> 
     37#include <libdodo/graphicsColor.h> 
    3738 
    3839namespace dodo 
  • trunk/include/libdodo/graphicsImage.h

    r1180 r1181  
    6969                  public: 
    7070 
    71                         /** 
    72                          * constructor 
    73                          */ 
    74                         __xexecImageCollectedData(); 
    75  
    7671#ifndef GRAPHICS_WO_XEXEC 
    7772                        /** 
     
    8277                        __xexecImageCollectedData(xexec *executor, 
    8378                                                                          short execObject); 
     79#else 
     80                        /** 
     81                         * constructor 
     82                         */ 
     83                        __xexecImageCollectedData(); 
    8484#endif 
    8585 
     
    8989                        ~__xexecImageCollectedData(); 
    9090 
    91                         __imagecHandle *handle; ///< ImageMagic handle 
     91                        __imageHandle *handle; ///< ImageMagic handle 
    9292                }; 
    9393 
     
    332332                  protected: 
    333333 
    334                         ExceptionInfo exInfo;                                                       ///< exception info handler 
     334                        void *exInfo;                                                       ///< exception info handler 
    335335 
    336336                        __xexecImageCollectedData collectedData;                                    ///< data collected for xexec 
     
    339339 
    340340                        static const char *mappingStArr[IMAGE_MAPPINGSTATEMENTS];                   ///< image mapping statements 
    341                         static const StorageType pixelSizeStArr[IMAGE_PIXELSIZESTATEMENTS];         ///< pixel type statements 
    342                         static const ImageType typeStArr[IMAGE_TYPESTATEMENTS];                     ///< color space statements 
     341                        static const int pixelSizeStArr[IMAGE_PIXELSIZESTATEMENTS];         ///< pixel type statements 
     342                        static const int typeStArr[IMAGE_TYPESTATEMENTS];                     ///< color space statements 
    343343                        static const char *encoderStArr[IMAGE_ENCODERSTATEMENTS];                   ///< image encoder 
    344                         static const CompressionType compressionStArr[IMAGE_COMPRESSIONSTATEMENTS]; ///< image compression 
    345                 }; 
    346  
    347                 /** 
    348                  * @class __image_init__ 
    349                  * @brief initializes image evironment 
    350                  */ 
    351                 class __image_init__ 
    352                 { 
    353                   public: 
    354  
    355                         /** 
    356                          * contructor 
    357                          */ 
    358                         __image_init__(); 
    359  
    360                         /** 
    361                          * destructor 
    362                          */ 
    363                         ~__image_init__(); 
    364  
    365                   private: 
    366  
    367                         /** 
    368                          * ImageMagic error handler 
    369                          * @param et defines error category 
    370                          * @param reason defines the reason of the error 
    371                          * @param description defines description to the reason 
    372                          */ 
    373                         static void imErrorHandler(const ExceptionType et, 
    374                                                                            const char          *reason, 
    375                                                                            const char          *description); 
    376  
    377                         /** 
    378                          * ImageMagic warning handler 
    379                          * @param et defines warning category 
    380                          * @param reason defines the reason of the warning 
    381                          * @param description defines description to the reason 
    382                          */ 
    383                         static void imWarningHandler(const ExceptionType et, 
    384                                                                                  const char          *reason, 
    385                                                                                  const char          *description); 
    386                 }; 
    387  
    388                 extern __image_init__ __image_init_object__; 
     344                        static const int compressionStArr[IMAGE_COMPRESSIONSTATEMENTS]; ///< image compression 
     345                }; 
    389346        }; 
    390347}; 
  • trunk/src/graphicsDraw.cc

    r1179 r1181  
    3838#include <math.h> 
    3939 
     40#include "graphicsImage.inline" 
     41 
    4042#include <libdodo/graphicsDraw.h> 
    4143#include <libdodo/types.h> 
     
    9294                                unsigned short borderWidth) 
    9395{ 
    94         if (im == NULL || im->collectedData.imHandle == NULL) 
     96        if (im == NULL || im->collectedData.handle->imHandle == NULL) 
    9597        { 
    9698                throw exception::basic(exception::ERRMODULE_GRAPHICSDRAW, DRAWEX_PRIMITIVE, exception::ERRNO_IMAGEMAGICK, DRAWEX_EMPTYIMAGE, GRAPHICSDRAWEX_EMPTYIMAGE_STR, __LINE__, __FILE__); 
     
    100102        DrawInfo *di = AcquireDrawInfo(); 
    101103#else 
    102         DrawInfo *di = CloneDrawInfo(im->collectedData.imInfo, NULL); 
     104        DrawInfo *di = CloneDrawInfo(im->collectedData.handle->imInfo, NULL); 
    103105#endif 
    104106 
     
    117119        di->fill.opacity = fillColor.opacity; 
    118120 
    119         if (DrawImage(im->collectedData.imHandle, di) == MagickFalse) 
     121        if (DrawImage(im->collectedData.handle->imHandle, di) == MagickFalse) 
    120122        { 
    121123                di->primitive = NULL; 
     
    194196                   double                angle) 
    195197{ 
    196         if (im == NULL || im->collectedData.imHandle == NULL) 
     198        if (im == NULL || im->collectedData.handle->imHandle == NULL) 
    197199        { 
    198200                throw exception::basic(exception::ERRMODULE_GRAPHICSDRAW, DRAWEX_TEXT, exception::ERRNO_IMAGEMAGICK, DRAWEX_EMPTYIMAGE, GRAPHICSDRAWEX_EMPTYIMAGE_STR, __LINE__, __FILE__); 
     
    206208        DrawInfo *di = AcquireDrawInfo(); 
    207209#else 
    208         DrawInfo *di = CloneDrawInfo(im->collectedData.imInfo, NULL); 
     210        DrawInfo *di = CloneDrawInfo(im->collectedData.handle->imInfo, NULL); 
    209211#endif 
    210212 
     
    250252        di->fill.opacity = fillColor.opacity; 
    251253 
    252         if (DrawImage(im->collectedData.imHandle, di) == MagickFalse) 
     254        if (DrawImage(im->collectedData.handle->imHandle, di) == MagickFalse) 
    253255        { 
    254256                di->primitive = NULL; 
     
    271273                        double                angle) 
    272274{ 
    273         if (im == NULL || im->collectedData.imHandle == NULL) 
     275        if (im == NULL || im->collectedData.handle->imHandle == NULL) 
    274276        { 
    275277                throw exception::basic(exception::ERRMODULE_GRAPHICSDRAW, DRAWEX_IMAGE, exception::ERRNO_IMAGEMAGICK, DRAWEX_EMPTYIMAGE, GRAPHICSDRAWEX_EMPTYIMAGE_STR, __LINE__, __FILE__); 
     
    303305        current.ty = _current.rx * affine.tx + _current.sy * affine.ty + _current.ty; 
    304306 
    305         if (DrawAffineImage(im->collectedData.imHandle, a_im.collectedData.imHandle, &current) == MagickFalse) 
     307        if (DrawAffineImage(im->collectedData.handle->imHandle, a_im.collectedData.handle->imHandle, &current) == MagickFalse) 
    306308        { 
    307309                throw exception::basic(exception::ERRMODULE_GRAPHICSDRAW, DRAWEX_IMAGE, exception::ERRNO_IMAGEMAGICK, DRAWEX_CANNOTDRAWPRIMITIVE, GRAPHICSDRAWEX_CANNOTDRAWPRIMITIVE_STR, __LINE__, __FILE__); 
     
    316318                        unsigned short        pointWidth) 
    317319{ 
    318         if (im == NULL || im->collectedData.imHandle == NULL) 
     320        if (im == NULL || im->collectedData.handle->imHandle == NULL) 
    319321        { 
    320322                throw exception::basic(exception::ERRMODULE_GRAPHICSDRAW, DRAWEX_POINT, exception::ERRNO_IMAGEMAGICK, DRAWEX_EMPTYIMAGE, GRAPHICSDRAWEX_EMPTYIMAGE_STR, __LINE__, __FILE__); 
     
    335337        DrawInfo *di = AcquireDrawInfo(); 
    336338#else 
    337         DrawInfo *di = CloneDrawInfo(im->collectedData.imInfo, NULL); 
     339        DrawInfo *di = CloneDrawInfo(im->collectedData.handle->imInfo, NULL); 
    338340#endif 
    339341 
     
    345347        di->fill.opacity = pointColor.opacity; 
    346348 
    347         if (DrawImage(im->collectedData.imHandle, di) == MagickFalse) 
     349        if (DrawImage(im->collectedData.handle->imHandle, di) == MagickFalse) 
    348350        { 
    349351                di->primitive = NULL; 
  • trunk/src/graphicsImage.cc

    r1179 r1181  
    3939#include <math.h> 
    4040 
     41#include "graphicsImage.inline" 
     42 
    4143#include <libdodo/graphicsImage.h> 
    4244#include <libdodo/types.h> 
     
    4951        namespace graphics 
    5052        { 
     53                /** 
     54                 * @class __image_init__ 
     55                 * @brief initializes image evironment 
     56                 */ 
     57                class __image_init__ 
     58                { 
     59                  public: 
     60 
     61                        /** 
     62                         * contructor 
     63                         */ 
     64                        __image_init__(); 
     65 
     66                        /** 
     67                         * destructor 
     68                         */ 
     69                        ~__image_init__(); 
     70 
     71                  private: 
     72 
     73                        /** 
     74                         * ImageMagic error handler 
     75                         * @param et defines error category 
     76                         * @param reason defines the reason of the error 
     77                         * @param description defines description to the reason 
     78                         */ 
     79                        static void imErrorHandler(const ExceptionType et, 
     80                                                                           const char          *reason, 
     81                                                                           const char          *description); 
     82 
     83                        /** 
     84                         * ImageMagic warning handler 
     85                         * @param et defines warning category 
     86                         * @param reason defines the reason of the warning 
     87                         * @param description defines description to the reason 
     88                         */ 
     89                        static void imWarningHandler(const ExceptionType et, 
     90                                                                                 const char          *reason, 
     91                                                                                 const char          *description); 
     92                }; 
     93 
    5194                __image_init__ __image_init_object__; 
    52  
    53                 struct __imageHandle 
    54                 { 
    55                         ImageInfo *imInfo; ///< image info handler 
    56                         Image     *imHandle;    ///< image handler 
    57                 }; 
    5895        }; 
    5996}; 
     97 
    6098 
    6199//------------------------------------------------------------------- 
     
    69107{ 
    70108} 
    71 #endif 
    72  
    73 //------------------------------------------------------------------- 
    74  
     109#else 
    75110__xexecImageCollectedData::__xexecImageCollectedData() : handle(new __imageHandle) 
    76111{ 
    77112} 
     113#endif 
    78114 
    79115//------------------------------------------------------------------- 
     
    145181//------------------------------------------------------------------- 
    146182 
    147 const ImageType image::typeStArr[] = 
     183const int image::typeStArr[] = 
    148184{ 
    149185        TrueColorMatteType, 
     
    153189//------------------------------------------------------------------- 
    154190 
    155 const StorageType image::pixelSizeStArr[] = 
     191const int image::pixelSizeStArr[] = 
    156192{ 
    157193        CharPixel, 
     
    177213//------------------------------------------------------------------- 
    178214 
    179 const CompressionType image::compressionStArr[] = 
     215const int image::compressionStArr[] = 
    180216{ 
    181217        NoCompression, 
     
    200236//------------------------------------------------------------------- 
    201237 
    202 image::image() 
    203 #ifndef GRAPHICS_WO_XEXEC 
    204         : collectedData(this, XEXEC_OBJECT_GRAPHICSIMAGE) 
     238image::image() : exInfo(new ExceptionInfo) 
     239#ifndef GRAPHICS_WO_XEXEC 
     240                           , 
     241                                 collectedData(this, XEXEC_OBJECT_GRAPHICSIMAGE) 
    205242#endif 
    206243{ 
     
    224261 
    225262        DestroyImageInfo(collectedData.handle->imInfo); 
    226         DestroyExceptionInfo(&exInfo); 
     263        DestroyExceptionInfo((ExceptionInfo *)exInfo); 
     264 
     265        delete (ExceptionInfo *)exInfo; 
    227266} 
    228267 
     
    244283        } 
    245284 
    246         GetExceptionInfo(&exInfo); 
     285        GetExceptionInfo((ExceptionInfo *)exInfo); 
    247286        GetImageInfo(collectedData.handle->imInfo); 
    248287 
     
    254293        } 
    255294 
    256         collectedData.handle->imHandle = ReadImage(collectedData.handle->imInfo, &exInfo); 
    257         if (collectedData.handle->imHandle == NULL) 
    258         { 
    259                 throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_READ, exception::ERRNO_IMAGEMAGICK, exInfo.error_number, exInfo.reason, __LINE__, __FILE__, exInfo.description); 
     295        collectedData.handle->imHandle = ReadImage(collectedData.handle->imInfo, (ExceptionInfo *)exInfo); 
     296        if (collectedData.handle->imHandle == NULL) 
     297        { 
     298                throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_READ, exception::ERRNO_IMAGEMAGICK, ((ExceptionInfo *)exInfo)->error_number, ((ExceptionInfo *)exInfo)->reason, __LINE__, __FILE__, ((ExceptionInfo *)exInfo)->description); 
    260299        } 
    261300 
     
    280319#endif 
    281320 
    282         GetExceptionInfo(&exInfo); 
     321        GetExceptionInfo((ExceptionInfo *)exInfo); 
    283322        GetImageInfo(collectedData.handle->imInfo); 
    284323 
     
    288327        } 
    289328 
    290         collectedData.handle->imHandle = BlobToImage(collectedData.handle->imInfo, data.data(), data.size(), &exInfo); 
    291         if (collectedData.handle->imHandle == NULL) 
    292         { 
    293                 throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_READ, exception::ERRNO_IMAGEMAGICK, exInfo.error_number, exInfo.reason, __LINE__, __FILE__, exInfo.description); 
     329        collectedData.handle->imHandle = BlobToImage(collectedData.handle->imInfo, data.data(), data.size(), (ExceptionInfo *)exInfo); 
     330        if (collectedData.handle->imHandle == NULL) 
     331        { 
     332                throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_READ, exception::ERRNO_IMAGEMAGICK, ((ExceptionInfo *)exInfo)->error_number, ((ExceptionInfo *)exInfo)->reason, __LINE__, __FILE__, ((ExceptionInfo *)exInfo)->description); 
    294333        } 
    295334 
     
    319358        } 
    320359 
    321         GetExceptionInfo(&exInfo); 
     360        GetExceptionInfo((ExceptionInfo *)exInfo); 
    322361        GetImageInfo(collectedData.handle->imInfo); 
    323362 
     
    327366        } 
    328367 
    329         collectedData.handle->imHandle = ConstituteImage(info.width, info.height, mappingStArr[info.mapping], pixelSizeStArr[info.pixelSize], info.data, &exInfo); 
    330         if (collectedData.handle->imHandle == NULL) 
    331         { 
    332                 throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_READ, exception::ERRNO_IMAGEMAGICK, exInfo.error_number, exInfo.reason, __LINE__, __FILE__, exInfo.description); 
     368        collectedData.handle->imHandle = ConstituteImage(info.width, info.height, mappingStArr[info.mapping], (StorageType)pixelSizeStArr[info.pixelSize], info.data, (ExceptionInfo *)exInfo); 
     369        if (collectedData.handle->imHandle == NULL) 
     370        { 
     371                throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_READ, exception::ERRNO_IMAGEMAGICK, ((ExceptionInfo *)exInfo)->error_number, ((ExceptionInfo *)exInfo)->reason, __LINE__, __FILE__, ((ExceptionInfo *)exInfo)->description); 
    333372        } 
    334373 
     
    356395#endif 
    357396 
    358         GetExceptionInfo(&exInfo); 
     397        GetExceptionInfo((ExceptionInfo *)exInfo); 
    359398        GetImageInfo(collectedData.handle->imInfo); 
    360399 
     
    380419        if (collectedData.handle->imHandle == NULL) 
    381420        { 
    382                 throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_CREATE, exception::ERRNO_IMAGEMAGICK, exInfo.error_number, exInfo.reason, __LINE__, __FILE__, exInfo.description); 
     421                throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_CREATE, exception::ERRNO_IMAGEMAGICK, ((ExceptionInfo *)exInfo)->error_number, ((ExceptionInfo *)exInfo)->reason, __LINE__, __FILE__, ((ExceptionInfo *)exInfo)->description); 
    383422        } 
    384423 
     
    408447        } 
    409448 
    410         if (SetImageType(collectedData.handle->imHandle, typeStArr[type]) == MagickFalse) 
     449        if (SetImageType(collectedData.handle->imHandle, (ImageType)typeStArr[type]) == MagickFalse) 
    411450        { 
    412451                throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_SETTYPE, exception::ERRNO_IMAGEMAGICK, IMAGEEX_CANNOTSETTYPE, GRAPHICSIMAGEEX_CANNOTSETTYPE_STR, __LINE__, __FILE__); 
     
    508547        strncpy(collectedData.handle->imHandle->filename, str.c_str(), size); 
    509548 
    510         GetExceptionInfo(&exInfo); 
     549        GetExceptionInfo((ExceptionInfo *)exInfo); 
    511550 
    512551        if (WriteImage(collectedData.handle->imInfo, collectedData.handle->imHandle) == MagickFalse) 
    513552        { 
    514                 throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_WRITE, exception::ERRNO_IMAGEMAGICK, collectedData.handle->imHandle->exception.error_number, exInfo.reason, __LINE__, __FILE__, exInfo.description); 
     553                throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_WRITE, exception::ERRNO_IMAGEMAGICK, collectedData.handle->imHandle->exception.error_number, ((ExceptionInfo *)exInfo)->reason, __LINE__, __FILE__, ((ExceptionInfo *)exInfo)->description); 
    515554        } 
    516555 
     
    535574        } 
    536575 
    537         GetExceptionInfo(&exInfo); 
     576        GetExceptionInfo((ExceptionInfo *)exInfo); 
    538577 
    539578        unsigned long size = 0; 
    540         unsigned char *imData = ImageToBlob(collectedData.handle->imInfo, collectedData.handle->imHandle, (size_t *)&size, &exInfo); 
     579        unsigned char *imData = ImageToBlob(collectedData.handle->imInfo, collectedData.handle->imHandle, (size_t *)&size, (ExceptionInfo *)exInfo); 
    541580        if (imData == NULL) 
    542581        { 
    543                 throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_WRITE, exception::ERRNO_IMAGEMAGICK, exInfo.error_number, exInfo.reason, __LINE__, __FILE__, exInfo.description); 
     582                throw exception::basic(exception::ERRMODULE_GRAPHICSIMAGE, IMAGEEX_WRITE, exception::ERRNO_IMAGEMAGICK, ((ExceptionInfo *)exInfo)->error_number, ((ExceptionInfo *)exInfo)->reason, __LINE__, __FILE__, ((ExceptionInfo *)exInfo)->description); 
    544583        } 
    545584 
     
    561600        } 
    562601 
    563         collectedData.handle->imInfo->compression = compressionStArr[type]; 
     602        collectedData.handle->imInfo->compression = (CompressionType)compressionStArr[type]; 
    564603} 
    565604 
  • trunk/src/graphicsTransform.cc

    r1180 r1181  
    3838 
    3939#include <math.h> 
     40 
     41#include "graphicsImage.inline" 
    4042 
    4143#include <libdodo/graphicsTransform.h> 
     
    8183                                 unsigned long height) 
    8284{ 
    83         if (im == NULL || im->collectedData.imHandle == NULL) 
     85        if (im == NULL || im->collectedData.handle->imHandle == NULL) 
    8486        { 
    8587                throw exception::basic(exception::ERRMODULE_GRAPHICSTRANSFORM, TRANSFORMEX_SCALE, exception::ERRNO_IMAGEMAGICK, TRANSFORMEX_EMPTYIMAGE, GRAPHICSTRANSFORMEX_EMPTYIMAGE_STR, __LINE__, __FILE__); 
     
    8890        GetExceptionInfo(&(im->exInfo)); 
    8991 
    90         Image *image = ScaleImage(im->collectedData.imHandle, width, height, &(im->exInfo)); 
     92        Image *image = ScaleImage(im->collectedData.handle->imHandle, width, height, &(im->exInfo)); 
    9193 
    9294        if (image == NULL) 
     
    9597        } 
    9698 
    97         DestroyImage(im->collectedData.imHandle); 
     99        DestroyImage(im->collectedData.handle->imHandle); 
    98100 
    99         im->collectedData.imHandle = image; 
     101        im->collectedData.handle->imHandle = image; 
    100102} 
    101103 
     
    105107transform::scale(unsigned long size) 
    106108{ 
    107         if (im == NULL || im->collectedData.imHandle == NULL) 
     109        if (im == NULL || im->collectedData.handle->imHandle == NULL) 
    108110        { 
    109111                throw exception::basic(exception::ERRMODULE_GRAPHICSTRANSFORM, TRANSFORMEX_SCALE, exception::ERRNO_IMAGEMAGICK, TRANSFORMEX_EMPTYIMAGE, GRAPHICSTRANSFORMEX_EMPTYIMAGE_STR, __LINE__, __FILE__); 
    110112        } 
    111113 
    112         float mult = (float)size / (float)((im->collectedData.imHandle->columns > im->collectedData.imHandle->rows) ? im->collectedData.imHandle->columns : im->collectedData.imHandle->rows); 
     114        float mult = (float)size / (float)((im->collectedData.handle->imHandle->columns > im->collectedData.handle->imHandle->rows) ? im->collectedData.handle->imHandle->columns : im->collectedData.handle->imHandle->rows); 
    113115 
    114116        GetExceptionInfo(&(im->exInfo)); 
    115117 
    116         Image *image = ScaleImage(im->collectedData.imHandle, (unsigned long)floor(im->collectedData.imHandle->columns * mult), (unsigned long)floor(im->collectedData.imHandle->rows * mult), &(im->exInfo)); 
     118        Image *image = ScaleImage(im->collectedData.handle->imHandle, (unsigned long)floor(im->collectedData.handle->imHandle->columns * mult), (unsigned long)floor(im->collectedData.handle->imHandle->rows * mult), &(im->exInfo)); 
    117119 
    118120        if (image == NULL) 
     
    121123        } 
    122124 
    123         DestroyImage(im->collectedData.imHandle); 
     125        DestroyImage(im->collectedData.handle->imHandle); 
    124126 
    125         im->collectedData.imHandle = image; 
     127        im->collectedData.handle->imHandle = image; 
    126128} 
    127129 
     
    131133transform::rotate(double angle) 
    132134{ 
    133         if (im == NULL || im->collectedData.imHandle == NULL) 
     135        if (im == NULL || im->collectedData.handle->imHandle == NULL) 
    134136        { 
    135137                throw exception::basic(exception::ERRMODULE_GRAPHICSTRANSFORM, TRANSFORMEX_ROTATE, exception::ERRNO_IMAGEMAGICK, TRANSFORMEX_EMPTYIMAGE, GRAPHICSTRANSFORMEX_EMPTYIMAGE_STR, __LINE__, __FILE__); 
     
    138140        GetExceptionInfo(&(im->exInfo)); 
    139141 
    140         Image *image = RotateImage(im->collectedData.imHandle, angle, &(im->exInfo)); 
     142        Image *image = RotateImage(im->collectedData.handle->imHandle, angle, &(im->exInfo)); 
    141143 
    142144        if (image == NULL) 
     
    145147        } 
    146148 
    147         DestroyImage(im->collectedData.imHandle); 
     149        DestroyImage(im->collectedData.handle->imHandle); 
    148150 
    149         im->collectedData.imHandle = image; 
     151        im->collectedData.handle->imHandle = image; 
    150152} 
    151153 
  • trunk/tests/image_test/test.cc

    r1115 r1181  
    1111#include <libdodo/ioFile.h> 
    1212 
     13#include <math.h> 
    1314#include <iostream> 
    1415 
Note: See TracChangeset for help on using the changeset viewer.