~ubuntu-branches/ubuntu/trusty/manaplus/trusty

« back to all changes in this revision

Viewing changes to src/resources/imagehelper.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-10-07 10:26:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131007102614-tg2zjdz8vmtl6n7i
Tags: 1.3.9.29-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "resources/imagehelper.h"
24
24
 
25
 
#include "resources/dye.h"
26
 
#include "resources/resourcemanager.h"
27
 
 
28
 
#include "client.h"
29
25
#include "logger.h"
30
26
#include "main.h"
31
27
 
32
 
#include "resources/image.h"
33
 
 
34
28
#include "utils/sdlcheckutils.h"
35
29
 
36
30
#include <SDL_image.h>
129
123
    if (!IMG_isPNG(rw))
130
124
    {
131
125
        logger->log("Error, image is not png");
 
126
        SDL_RWclose(rw);
132
127
        return nullptr;
133
128
    }
134
129
    SDL_Surface *const tmpImage = MIMG_LoadPNG_RW(rw);