mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-25 00:58:35 -07:00
Set NSWindow color space to sRGB on macOS (#10827)
This commit is contained in:
parent
4d7699b628
commit
32ca697e9e
1 changed files with 5 additions and 0 deletions
|
|
@ -53,6 +53,11 @@ float RetinaHelper::get_scale_factor()
|
|||
[nc addObserver:self selector:@selector(windowDidChangeBackingProperties:)
|
||||
name:NSWindowDidChangeBackingPropertiesNotification object:nil];
|
||||
}
|
||||
|
||||
NSWindow* window = [aView window];
|
||||
if (window) {
|
||||
[window setColorSpace:[NSColorSpace sRGBColorSpace]];
|
||||
}
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue