Page 1 of 1

Preview - what is iResX and iResY

PostPosted: August 6th, 2013, 7:36 am
by bruce
In the Preview component

TPrintPreview v5.90
TPaperPreview v2.20
TThumbnailPreview v2.11

There are variables
iResX, iResY: Single;

in the procedure

procedure TGDIPlusSubset.Draw(Canvas: TCanvas; const Rect: TRect; Metafile: TMetafile);

when compiling with Delphi 2010, these raise a warning

[DCC Hint] Preview.pas(6703): H2164 Variable 'iResX' is declared but never used in 'TGDIPlusSubset.Draw'
[DCC Hint] Preview.pas(6703): H2164 Variable 'iResY' is declared but never used in 'TGDIPlusSubset.Draw'


I commented them out and it seems to be fine but wonder if they are there for a reason.

Re: Preview - what is iResX and iResY

PostPosted: August 11th, 2013, 11:41 am
by Kambiz
Hi Bruce,

As you already find out, they are junk. I've missed to remove those variables after revising the code.

Thanks for bringing this to my attention.