Skip to content
Permalink
Browse files

[macOS Catalina compatible] remove deprecated shit (#1862)

  • Loading branch information
time-killer-games authored and JoshDreamland committed Nov 13, 2019
1 parent 243b23a commit 3bbab0bdc1642513e408d0550e46ffc76ce6eaaf
Showing with 3 additions and 3 deletions.
  1. +3 −3 ENIGMAsystem/SHELL/Widget_Systems/Cocoa/dialogs.m
@@ -502,10 +502,10 @@ int cocoa_get_color(int defcol, const char *title) {

[myOKButton setTitle:@"OK"];
[myOKButton setAlternateTitle:@"OK"];
[myOKButton setBezelStyle:NSRoundedBezelStyle];
[myOKButton setBezelStyle:1];
[myCancelButton setTitle:@"Cancel"];
[myCancelButton setAlternateTitle:@"Cancel"];
[myCancelButton setBezelStyle:NSRoundedBezelStyle];
[myCancelButton setBezelStyle:1];
[myButtonView addSubview:myOKButton];
[myButtonView addSubview:myCancelButton];
[myOKButton setKeyEquivalent:@"\r"];
@@ -566,7 +566,7 @@ int cocoa_get_color(int defcol, const char *title) {

if (colorOKPressed) {
myColor = [myColorPanel color];
convertedColor = [myColor colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
convertedColor = [myColor colorUsingType:NSColorTypeComponentBased];

if (convertedColor) {
[convertedColor getRed:&r green:&g blue:&b alpha:&a];

0 comments on commit 3bbab0b

Please sign in to comment.
You can’t perform that action at this time.