Cocoa Port: Fix a UI bug on macOS High Sierra where the dropdown sheet for configuring an NDS input's turbo pattern would fail to show the numbers in each NSSegmentedControl element.

This commit is contained in:
rogerman 2018-07-27 01:38:00 -07:00
parent d7c347d3ae
commit 4913c0e7ae
1 changed files with 2 additions and 2 deletions

View File

@ -857,14 +857,14 @@
for (NSInteger i = 0; i < turboPatternLength; i++)
{
[turboPatternControl setWidth:19.0f forSegment:i];
[turboPatternControl setWidth:23.0f forSegment:i];
[turboPatternControl setLabel:[NSString stringWithFormat:@"%i", (int)(i + 1)] forSegment:i];
BOOL isPressedBit = ( ((turboPattern >> i) & 0x01) != 0 );
[turboPatternControl setSelected:isPressedBit forSegment:i];
}
float controlWidth = (turboPatternLength * (19.0f + 1.3f));
float controlWidth = (turboPatternLength * (23.0f + 1.5f));
NSRect oldSheetFrame = [theSheet frame];
NSRect newSheetFrame = oldSheetFrame;