File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -1092,14 +1092,22 @@ fn main() {
10921092 // #[cfg(target_os = "macos")]
10931093 // let _ = sciter::set_options(sciter::RuntimeOptions::GfxLayer(GFX_LAYER::SKIA_VULKAN));
10941094
1095- let mut frame = sciter:: WindowBuilder :: main ( )
1096- . with_size ( ( 800 , 600 ) )
1097- // .glassy()
1098- // .alpha()
1099- . with_title ( )
1095+ let mut builder = sciter:: WindowBuilder :: main ( )
1096+ . with_size ( ( 800 , 600 ) ) ;
1097+
1098+ #[ cfg( target_os = "macos" ) ]
1099+ {
1100+ builder = builder. with_title ( )
11001101 . resizeable ( )
1101- . closeable ( )
1102- . create ( ) ;
1102+ . closeable ( ) ;
1103+ }
1104+
1105+ #[ cfg( not( target_os = "macos" ) ) ]
1106+ {
1107+ builder = builder. glassy ( ) . alpha ( ) ;
1108+ }
1109+
1110+ let mut frame = builder. create ( ) ;
11031111
11041112 #[ cfg( debug_assertions) ]
11051113 {
You can’t perform that action at this time.
0 commit comments