mirror of
https://github.com/glfw/glfw.git
synced 2025-06-08 00:34:56 +00:00
fix
This commit is contained in:
parent
bf66cb6e22
commit
12e32bc6aa
@ -1035,7 +1035,7 @@ void _glfwSetWindowTitlebarColorCocoa(_GLFWwindow* window, int r, int g, int b,
|
|||||||
CGFloat blue = (CGFloat)b / 255.0;
|
CGFloat blue = (CGFloat)b / 255.0;
|
||||||
CGFloat alpha = (CGFloat)a / 255.0;
|
CGFloat alpha = (CGFloat)a / 255.0;
|
||||||
|
|
||||||
NSColor *color = [NSColor colorWithCalibratedRed:red green:green blue:blue alpha:alpha];
|
NSColor *color = [NSColor colorWithDeviceRed:red green:green blue:blue alpha:alpha];
|
||||||
|
|
||||||
[window->ns.object setTitlebarAppearsTransparent:YES]; // gives it "flat" look
|
[window->ns.object setTitlebarAppearsTransparent:YES]; // gives it "flat" look
|
||||||
[window->ns.object setBackgroundColor:color];
|
[window->ns.object setBackgroundColor:color];
|
||||||
|
Loading…
Reference in New Issue
Block a user