Skip to content

Commit

Permalink
OwlShmBuffer.m: fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Jan 18, 2025
1 parent 91abf02 commit 1816270
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Compositor/OwlShmBuffer.m
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ - (void) drawInRect: (NSRect) rect {
#ifdef OWL_PLATFORM_APPLE
CGContextRef context = [[NSGraphicsContext currentContext] graphicsPort];
CGContextSetBlendMode(context, kCGBlendModeCopy);
CGContextDrawImage(context, rect, _image);
CGRect cgRect = CGRectMake(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);

CGContextDrawImage(context, cgRect, _image);
#else
[_rep drawInRect: rect
fromRect: rect
Expand Down

0 comments on commit 1816270

Please sign in to comment.