mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:50:37 +00:00
Use CGFloat as original structures do and double for scale instead of CGFloat -> double -> float
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40006 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d0a064e93c
commit
dae84d53ea
2 changed files with 9 additions and 3 deletions
|
@ -4238,9 +4238,9 @@ static NSView* findByTag(NSView *view, NSInteger aTag, NSUInteger *level)
|
|||
NSPrintInfo *info = [printOp printInfo];
|
||||
NSGraphicsContext *ctxt = [printOp context];
|
||||
NSSize paperSize = [info paperSize];
|
||||
float scale = (double)([self frame].size.width/paperSize.width);
|
||||
float xoff = 0.0;
|
||||
float yoff = (paperSize.height - [self frame].size.height) / scale;
|
||||
double scale = (double)([self frame].size.width/paperSize.width);
|
||||
CGFloat xoff = 0.0;
|
||||
CGFloat yoff = (paperSize.height - [self frame].size.height) / scale;
|
||||
|
||||
[ctxt beginPage: ordinalNum
|
||||
label: aString
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue