Bug fix for print auto-scaling.
This commit is contained in:
parent
ed3e365bf0
commit
cbb3b9d3c4
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ const char* SurfacePrint( SDL_Surface *surface, int showDialog )
|
|||
[ printInfo setRightMargin:pageOrigin.x ];
|
||||
[ printInfo setBottomMargin:pageOrigin.y ];
|
||||
|
||||
float surfaceRatio = surface->w / surface->h;
|
||||
float surfaceRatio = (float)( surface->w ) / (float)( surface->h );
|
||||
float pageRatio = pageSize.width / pageSize.height;
|
||||
|
||||
NSSize imageSize = pageSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue