File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -3907,6 +3907,7 @@ _SOKOL_PRIVATE void _sapp_macos_frame(void) {
3907
3907
@implementation _sapp_macos_app_delegate
3908
3908
- (void )applicationDidFinishLaunching :(NSNotification * )aNotification {
3909
3909
_SOKOL_UNUSED (aNotification );
3910
+
3910
3911
_sapp_macos_init_cursors ();
3911
3912
if ((_sapp .window_width == 0 ) || (_sapp .window_height == 0 )) {
3912
3913
// use 4/5 of screen size as default size
@@ -4104,7 +4105,17 @@ keyEquivalent:@"v"];
4104
4105
_sapp_macos_update_dimensions ();
4105
4106
[NSEvent setMouseCoalescingEnabled :NO ];
4106
4107
4108
+
4107
4109
// __v_ start
4110
+ /*
4111
+ NSApplicationPresentationOptions options = (NSApplicationPresentationAutoHideMenuBar |
4112
+ NSApplicationPresentationAutoHideDock |
4113
+ NSApplicationPresentationFullScreen |
4114
+ NSApplicationPresentationHideDock);
4115
+
4116
+ [NSApp setPresentationOptions:options];
4117
+ */
4118
+
4108
4119
//[NSEvent setMouseCoalescingEnabled:NO];
4109
4120
// __v_ end
4110
4121
}
Original file line number Diff line number Diff line change @@ -2604,7 +2604,12 @@ pub fn (name string) match_glob(pattern string) bool {
2604
2604
// is_ascii returns true if all characters belong to the US-ASCII set ([` `..`~`])
2605
2605
@[inline]
2606
2606
pub fn (s string) is_ascii () bool {
2607
- return ! s.bytes ().any (it < u8 (` ` ) || it > u8 (`~` ))
2607
+ for i := 0 ; i < s.len; i++ {
2608
+ if s[i] < u8 (` ` ) || s[i] > u8 (`~` ) {
2609
+ return false
2610
+ }
2611
+ }
2612
+ return true
2608
2613
}
2609
2614
2610
2615
// camel_to_snake convert string from camelCase to snake_case
You can’t perform that action at this time.
0 commit comments