Should make DOSBox usage easier to spot.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3772
This commit is contained in:
parent
8749c42829
commit
b30d51f8f8
1 changed files with 14 additions and 0 deletions
|
@ -359,6 +359,20 @@ void CAPTURE_AddImage(Bitu width, Bitu height, Bitu bpp, Bitu pitch, Bitu flags,
|
|||
8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE,
|
||||
PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
|
||||
}
|
||||
#ifdef PNG_TEXT_SUPPORTED
|
||||
int fields = 1;
|
||||
png_text text[1];
|
||||
const char* text_s = "DOSBox " VERSION;
|
||||
size_t strl = strlen(text_s);
|
||||
char* ptext_s = new char[strl + 1];
|
||||
strcpy(ptext_s, text_s);
|
||||
char software[9] = { 'S','o','f','t','w','a','r','e',0};
|
||||
text[0].compression = PNG_TEXT_COMPRESSION_NONE;
|
||||
text[0].key = software;
|
||||
text[0].text = ptext_s;
|
||||
png_set_text(png_ptr, info_ptr, text, fields);
|
||||
delete [] ptext_s;
|
||||
#endif
|
||||
png_write_info(png_ptr, info_ptr);
|
||||
for (i=0;i<height;i++) {
|
||||
void *rowPointer;
|
||||
|
|
Loading…
Add table
Reference in a new issue