Skip to content

Commit

Permalink
macos: replace deprecated editor things based on 10.15 deployment target
Browse files Browse the repository at this point in the history
  • Loading branch information
jonof committed Feb 19, 2024
1 parent a8749bd commit b6e39e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/EditorStartupWinController.m
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ - (void)populateVideoModes:(BOOL)firstTime
xdim2d = settings->xdim2d;
ydim2d = settings->ydim2d;
} else {
fullscreen = ([fullscreenButton state] == NSOnState);
fullscreen = ([fullscreenButton state] == NSControlStateValueOn);
mode3d = (int)[[videoMode3DPUButton selectedItem] tag];
if (mode3d >= 0) {
xdim = validmode[mode3d].xdim;
Expand Down Expand Up @@ -196,7 +196,7 @@ - (IBAction)start:(id)sender
settings->ydim2d = validmode[mode].ydim;
}

settings->forcesetup = [alwaysShowButton state] == NSOnState;
settings->forcesetup = [alwaysShowButton state] == NSControlStateValueOn;

if (inmodal) {
[NSApp stopModalWithCode:STARTWIN_RUN];
Expand All @@ -205,14 +205,14 @@ - (IBAction)start:(id)sender

- (void)setupConfigMode
{
[alwaysShowButton setState: (settings->forcesetup ? NSOnState : NSOffState)];
[alwaysShowButton setState: (settings->forcesetup ? NSControlStateValueOn : NSControlStateValueOff)];
[alwaysShowButton setEnabled:YES];

[videoMode2DPUButton setEnabled:YES];
[videoMode3DPUButton setEnabled:YES];
[self populateVideoModes:YES];
[fullscreenButton setEnabled:YES];
[fullscreenButton setState: (settings->fullscreen ? NSOnState : NSOffState)];
[fullscreenButton setState: (settings->fullscreen ? NSControlStateValueOn : NSControlStateValueOff)];

[cancelButton setEnabled:YES];
[startButton setEnabled:YES];
Expand Down

0 comments on commit b6e39e9

Please sign in to comment.