@@ -32,22 +32,22 @@ - (id) initWithDisplay: (CGDirectDisplayID) display andMode: (modes_D4*) mode
32
32
{
33
33
if (refreshRate)
34
34
{
35
- title = [NSString stringWithFormat: @" %d x %d (HiDPI) , %.0f Hz" , width, height, refreshRate];
35
+ title = [NSString stringWithFormat: @" %d × %d ⚡️ , %.0f Hz" , width, height, refreshRate];
36
36
}
37
37
else
38
38
{
39
- title = [NSString stringWithFormat: @" %d x %d (HiDPI) " , width, height];
39
+ title = [NSString stringWithFormat: @" %d × %d ⚡️ " , width, height];
40
40
}
41
41
}
42
42
else
43
43
{
44
44
if (refreshRate)
45
45
{
46
- title = [NSString stringWithFormat: @" %d x %d , %.0f Hz" , width, height, refreshRate];
46
+ title = [NSString stringWithFormat: @" %d × %d , %.0f Hz" , width, height, refreshRate];
47
47
}
48
48
else
49
49
{
50
- title = [NSString stringWithFormat: @" %d x %d " , width, height];
50
+ title = [NSString stringWithFormat: @" %d × %d " , width, height];
51
51
}
52
52
}
53
53
[self setTitle: title];
@@ -67,11 +67,11 @@ - (void) setTextFormat: (int) textFormat
67
67
{
68
68
if (scale == 2 .0f )
69
69
{
70
- title = [NSString stringWithFormat: @" %d x %d (HiDPI) " , width, height];
70
+ title = [NSString stringWithFormat: @" %d × %d ⚡ " , width, height];
71
71
}
72
72
else
73
73
{
74
- title = [NSString stringWithFormat: @" %d x %d " , width, height];
74
+ title = [NSString stringWithFormat: @" %d × %d " , width, height];
75
75
}
76
76
}
77
77
@@ -124,18 +124,18 @@ - (float) scale
124
124
- (NSComparisonResult ) compareResMenuItem : (ResMenuItem*) otherItem
125
125
{
126
126
{
127
- int o_scale = [otherItem scale ];
128
- if (scale < o_scale )
127
+ int o_width = [otherItem width ];
128
+ if (width < o_width )
129
129
return NSOrderedDescending;
130
- else if (scale > o_scale )
130
+ else if (width > o_width )
131
131
return NSOrderedAscending;
132
132
// return NSOrderedSame;
133
133
}
134
134
{
135
- int o_width = [otherItem width ];
136
- if (width < o_width )
135
+ int o_scale = [otherItem scale ];
136
+ if (scale < o_scale )
137
137
return NSOrderedDescending;
138
- else if (width > o_width )
138
+ else if (scale > o_scale )
139
139
return NSOrderedAscending;
140
140
// return NSOrderedSame;
141
141
}
0 commit comments