From c2efedab22275302f0a10cc197424d345a021d18 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Jun 2012 20:13:48 +0300 Subject: Replace SDL int types to C++ types. --- src/resources/imagewriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resources/imagewriter.cpp') diff --git a/src/resources/imagewriter.cpp b/src/resources/imagewriter.cpp index 9501c98a5..f452a9050 100644 --- a/src/resources/imagewriter.cpp +++ b/src/resources/imagewriter.cpp @@ -103,7 +103,7 @@ bool ImageWriter::writePNG(SDL_Surface *surface, const std::string &filename) for (int i = 0; i < surface->h; i++) { - row_pointers[i] = static_cast(static_cast( + row_pointers[i] = static_cast(static_cast( surface->pixels)) + i * surface->pitch; } -- cgit v1.2.3-70-g09d2