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 » August 6th, 2013, 7:36 am

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: August 6th, 2013, 7:25 am

Re: Preview - what is iResX and iResY

Postby Kambiz » August 11th, 2013, 11:41 am

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: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron