mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 18:31:20 +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
d675e4e2c9
commit
2367930240
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-07-18 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Source/NSView.m:
|
||||
Use CGFloat as original structures do and double for scale instead of
|
||||
CGFloat -> double -> float.
|
||||
|
||||
2016-07-16 18:12-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSPrintInfo.m: Add a comment so it's clear what
|
||||
|
|
|
@ -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…
Reference in a new issue