hedgewars/uVideoRec.pas
changeset 14892 a414d37278df
parent 14884 002f7d41f5ce
child 14898 66b510a8b81c
equal deleted inserted replaced
14891:3054b85963ef 14892:a414d37278df
   225 
   225 
   226 procedure SaveThumbnail;
   226 procedure SaveThumbnail;
   227 var thumbpath: shortstring;
   227 var thumbpath: shortstring;
   228     k: LongInt;
   228     k: LongInt;
   229 begin
   229 begin
   230     thumbpath:= '/VideoTemp/' + RecPrefix;
   230     thumbpath:= '/VideoThumbnails/' + RecPrefix;
   231     AddFileLog('Saving thumbnail ' + thumbpath);
   231     AddFileLog('Saving thumbnail ' + thumbpath);
   232     k:= max(max(cScreenWidth, cScreenHeight) div 400, 1); // here 400 is minimum size of thumbnail
   232     k:= max(max(cScreenWidth, cScreenHeight) div 400, 1); // here 400 is minimum size of thumbnail
   233     MakeScreenshot(thumbpath, k, 0);
   233     MakeScreenshot(thumbpath, k, 0);
   234     thumbnailSaved:= true;
   234     thumbnailSaved:= true;
   235 end;
   235 end;