mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-28 16:11:54 -05:00
Set NSWindow color space to sRGB on macOS (#10827)
This commit is contained in:
1 parent
4d7699b628
commit
32ca697e9e
1 file changed
+5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user