Components, printers: fixed compilation with FPC > 2.6.2

git-svn-id: trunk@43553 -
This commit is contained in:
maxim 2013-12-16 21:26:11 +00:00
parent c3f0c69262
commit 07ebd480ca

View File

@ -570,7 +570,11 @@ begin
end
else
begin
{$IFDEF FPC_FULLVERSION>20602}
PDev.Device := PChar(TmpDevModeA^.dmDeviceName);
{$ELSE}
PDev.Device := PChar(PByte(TmpDevModeA^.dmDeviceName));
{$ENDIF}
PDev.DefaultPaper := TmpDevModeA^.dmPaperSize;
PDev.DefaultBin := TmpDevModeA^.dmDefaultSource;
end;