add game info as jpeg comment to jpg-screenshots

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3855 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-12-03 18:51:14 +00:00
parent 8336b478ae
commit 00958c88d0
3 changed files with 53 additions and 13 deletions
+2
View File
@@ -188,6 +188,8 @@ void jpeg_screenshot(char *imagepath)
jpeg_set_defaults(&cinfo);
jpeg_set_quality(&cinfo, jpegquality, TRUE);
jpeg_start_compress(&cinfo, TRUE);
const char *comment = asciiscores(true);
jpeg_write_marker(&cinfo, JPEG_COM, (JOCTET *) comment, strlen(comment));
while(cinfo.next_scanline < cinfo.image_height)
{