Skip to content

Commit

Permalink
Use pixels instead of points as recommended values for image rendering
Browse files Browse the repository at this point in the history
This fixes #106.
  • Loading branch information
cochrane committed Apr 28, 2018
1 parent cd29ddd commit bef0a23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GLLara/GLLRenderWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ - (NSString *)windowTitleForDocumentDisplayName:(NSString *)displayName

- (IBAction)renderToFile:(id)sender
{
NSRect rect = NSMakeRect(0, 0, self.camera.actualWindowWidth, self.camera.actualWindowHeight);
NSRect pixelRect = [self.window convertRectToBacking:rect];
NSMutableDictionary *saveData = [NSMutableDictionary dictionaryWithDictionary:@{
@"width" : @(self.camera.actualWindowWidth),
@"height" : @(self.camera.actualWindowHeight),
@"width" : @(pixelRect.size.width),
@"height" : @(pixelRect.size.height),
@"maxSamples" : @8,
}];

Expand Down

0 comments on commit bef0a23

Please sign in to comment.