diff options
| author | Matthew Parlane <parlane@gmail.com> | 2013-11-15 17:58:57 +1300 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2013-11-15 17:58:57 +1300 |
| commit | c712fb7356791a3fb0c6f321d79badd9420123e4 (patch) | |
| tree | 74843b7dfb1b56358dc0ef596f3c298f34b09596 /Source/Core/VideoCommon | |
| parent | 714633f311c0cf029e65a07ad55386bb393a6b45 (diff) | |
Fix introduced ImageWrite warning.
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Src/ImageWrite.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/ImageWrite.cpp b/Source/Core/VideoCommon/Src/ImageWrite.cpp index 7249a59952..b00975e615 100644 --- a/Source/Core/VideoCommon/Src/ImageWrite.cpp +++ b/Source/Core/VideoCommon/Src/ImageWrite.cpp @@ -82,6 +82,7 @@ bool TextureToPng(u8* data, int row_stride, const char* filename, int width, int return false; char title[] = "Dolphin Screenshot"; + char title_key[] = "Title"; FILE *fp = NULL; png_structp png_ptr = NULL; png_infop info_ptr = NULL; @@ -123,7 +124,7 @@ bool TextureToPng(u8* data, int row_stride, const char* filename, int width, int png_text title_text; title_text.compression = PNG_TEXT_COMPRESSION_NONE; - title_text.key = "Title"; + title_text.key = title_key; title_text.text = title; png_set_text(png_ptr, info_ptr, &title_text, 1); |
