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

« back to all changes in this revision

Viewing changes to src/resources/imagewriter.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:
25
25
#include "logger.h"
26
26
 
27
27
#include <png.h>
28
 
#include <SDL.h>
 
28
#include <SDL_video.h>
29
29
#include <string>
30
30
 
31
31
#include "debug.h"
84
84
    png_set_packing(png_ptr);
85
85
 
86
86
    png_bytep *const row_pointers = new png_bytep[surface->h];
 
87
/*
87
88
    if (!row_pointers)
88
89
    {
89
90
        logger->log1("Had trouble converting surface to row pointers");
90
91
        fclose(fp);
91
92
        return false;
92
93
    }
 
94
*/
93
95
 
94
96
    for (int i = 0; i < surface->h; i++)
95
97
    {