hedgewars/uVideoRec.pas
changeset 10633 2f062fac5791
parent 10309 e338ccbbe100
child 11046 47a8c19ecb60
equal deleted inserted replaced
10632:5ae7ba0b2849 10633:2f062fac5791
   237     k: LongInt;
   237     k: LongInt;
   238 begin
   238 begin
   239     thumbpath:= '/VideoTemp/' + RecPrefix;
   239     thumbpath:= '/VideoTemp/' + RecPrefix;
   240     AddFileLog('Saving thumbnail ' + thumbpath);
   240     AddFileLog('Saving thumbnail ' + thumbpath);
   241     k:= max(max(cScreenWidth, cScreenHeight) div 400, 1); // here 400 is minimum size of thumbnail
   241     k:= max(max(cScreenWidth, cScreenHeight) div 400, 1); // here 400 is minimum size of thumbnail
   242     MakeScreenshot(thumbpath, k);
   242     MakeScreenshot(thumbpath, k, 0);
   243     thumbnailSaved:= true;
   243     thumbnailSaved:= true;
   244 end;
   244 end;
   245 
   245 
   246 // copy file (free pascal doesn't have copy file function)
   246 // copy file (free pascal doesn't have copy file function)
   247 procedure CopyFile(src, dest: shortstring);
   247 procedure CopyFile(src, dest: shortstring);