From cc87035de05850138747b43a4675354100f0fe71 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Sun, 2 Apr 2006 15:32:04 +0000 Subject: [PATCH] Originally committed to SVN as r291. --- core/subtitle_format_prs.cpp | 8 +++----- prs/prs_file.cpp | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) 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; }