Preview - what is iResX and iResY

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Preview - what is iResX and iResY

Postby bruce » 06/08/13 07:36

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.
bruce
Member
Member
 
Posts: 1
Joined: 06/08/13 07:25

Re: Preview - what is iResX and iResY

Postby Kambiz » 11/08/13 11:41

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2328
Joined: 07/03/03 19:10
Location: The Netherlands


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 4 guests