~armagetronad-dev/armagetronad/0.4-armagetronad-sdl2

« back to all changes in this revision

Viewing changes to src/render/rSysdep.cpp

  • Committer: z-man
  • Date: 2015-04-26 21:46:08 UTC
  • Revision ID: z-man@users.sf.net-20150426214608-7vm6od7xwqtbbo13
Hey, you can link directly with DLLs, not just .lib or .a. Neat. Using that to link with libpng and reactivating PNG screenshots on Windows.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
#include "SDL_thread.h"
54
54
#include "SDL_mutex.h"
55
55
 
56
 
#ifndef WIN32
57
 
#define PNG_SCREENSHOT
58
 
#else
59
 
#if !SDL_VERSION_ATLEAST(2, 0, 0)
60
 
#define PNG_SCREENSHOT
61
 
#endif
62
 
#endif
 
56
//#ifndef WIN32
 
57
//#define PNG_SCREENSHOT
 
58
//#else
 
59
//#if !SDL_VERSION_ATLEAST(2, 0, 0)
 
60
#define PNG_SCREENSHOT
 
61
//#endif
 
62
//#endif
63
63
 
64
64
#ifdef PNG_SCREENSHOT
65
65
#include <png.h>