1 parent f5d089c commit f001db6Copy full SHA for f001db6
2 files changed
resources/dist.rc
-3 Bytes
src/main.rs
@@ -1092,14 +1092,22 @@ fn main() {
1092
// #[cfg(target_os = "macos")]
1093
// let _ = sciter::set_options(sciter::RuntimeOptions::GfxLayer(GFX_LAYER::SKIA_VULKAN));
1094
1095
- let mut frame = sciter::WindowBuilder::main()
1096
- .with_size((800, 600))
1097
- // .glassy()
1098
- // .alpha()
1099
- .with_title()
+ let mut builder = sciter::WindowBuilder::main()
+ .with_size((800, 600));
+
+ #[cfg(target_os = "macos")]
+ {
1100
+ builder = builder.with_title()
1101
.resizeable()
- .closeable()
1102
- .create();
+ .closeable();
1103
+ }
1104
1105
+ #[cfg(not(target_os = "macos"))]
1106
1107
+ builder = builder.glassy().alpha();
1108
1109
1110
+ let mut frame = builder.create();
1111
1112
#[cfg(debug_assertions)]
1113
{
0 commit comments