Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix introduced ImageWrite warning.
  • Loading branch information
Parlane committed Nov 15, 2013
1 parent 714633f commit c712fb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/VideoCommon/Src/ImageWrite.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit c712fb7

Please sign in to comment.