From 514837958999ee37addc47a52dc850798269ee93 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 24 May 2007 23:02:18 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1016 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/main.cpp b/source/src/main.cpp index 3493f489..06466ab0 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -51,8 +51,9 @@ void screenshot(char *imagepath) uchar *dst = (uchar *)image->pixels; loopi(scr_h) { - memcpy(dst, &tmp[3*scr_w*i], 3*scr_w); + memcpy(dst, &tmp[3*scr_w*(scr_h-i-1)], 3*scr_w); endianswap(dst, 3, scr_w); + dst += image->pitch; } delete[] tmp; if(!imagepath[0])