Skip to content

Commit

Permalink
CGColorRef => CGColor
Browse files Browse the repository at this point in the history
  • Loading branch information
drewcrawford committed Sep 8, 2022
1 parent 76c2113 commit d2633bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cametallayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ objc_selector_group! {
impl CAMetalLayer {
//todo: Move this onto a CALayer type
//(CALayer is not yet implemented)
pub fn setBackgroundColor(&self, color: Option<&CGColorRef>, pool: &ActiveAutoreleasePool) {
pub fn setBackgroundColor(&self, color: Option<&CGColor>, pool: &ActiveAutoreleasePool) {
unsafe {
//assume_nonmut_perform: see note at top of file
Self::perform_primitive(self.assume_nonmut_perform(), Sel::setBackgroundColor_(), pool, (color.as_ptr().assume_nonmut_perform(),))
Expand Down

0 comments on commit d2633bd

Please sign in to comment.