diff --git a/core/subtitle_format_prs.cpp b/core/subtitle_format_prs.cpp index 99fadc8d4..0023f171a 100644 --- a/core/subtitle_format_prs.cpp +++ b/core/subtitle_format_prs.cpp @@ -177,10 +177,8 @@ void PRSSubtitleFormat::WriteFile(wxString filename,wxString encoding) { // Save file file.Save((const char*)filename.mb_str(wxConvLocal)); - - // Test file - PRSVideoFrame testFrame; - file.DrawFrame(lastFrameDrawn,&testFrame); + wxString filename2 = filename + _T(".prsa"); + file.SaveText((const char*)filename2.mb_str(wxConvLocal)); #endif } @@ -244,7 +242,7 @@ void PRSSubtitleFormat::InsertFrame(PRSFile &file,int &framen,std::vector & int startf = framen; int totalFrames = frames.size(); while (++framenstartFrame << "," << display->endFrame << "," << display->start << "," << display->end; - file << display->id << "," << display->x << "," << display->y << "," << display->alpha << "," << display->blend; + file << "DSP: " << display->startFrame << "," << display->endFrame << "," << display->start << "," << display->end << ","; + file << display->id << "," << display->x << "," << display->y << "," << (int)(display->alpha) << "," << (int)(display->blend); file << std::endl; continue; }