Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OwlShmBuffer.m: fix type #14

Draft
wants to merge 1 commit into
base: tmp
Choose a base branch
from

Conversation

barracuda156
Copy link

Let’s perhaps fix this one to begin with

@@ -168,7 +168,7 @@ - (NSSize) size {
return NSMakeSize(width, height);
}

- (void) drawInRect: (NSRect) rect {
- (void) drawInRect: (CGRect) rect {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is defined as taking an NSRect, see OwlBuffer.h. Instead, we need to convert the NSRect argument into a CGRect before passing it into CGContextDrawImage.

@barracuda156 barracuda156 marked this pull request as draft November 27, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants