Originally committed to SVN as r291.

This commit is contained in:
Rodrigo Braz Monteiro 2006-04-02 15:32:04 +00:00
parent 021d6c28b2
commit cc87035de0
2 changed files with 5 additions and 7 deletions

View File

@ -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> &
int startf = framen;
int totalFrames = frames.size();
while (++framen<totalFrames && frames[framen] == 1);
int endf = --framen;
int endf = framen;
int start = VFR_Output.GetTimeAtFrame(startf,true);
int end = VFR_Output.GetTimeAtFrame(endf,false);

View File

@ -367,8 +367,8 @@ void PRSFile::SaveText(std::string path) {
display = PRSEntry::GetDisplay(*cur);
if (display) {
// Write text
file << "DSP: " << display->startFrame << "," << 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;
}