Skip to content

Commit f001db6

Browse files
fix: win/linux frame
1 parent f5d089c commit f001db6

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

resources/dist.rc

-3 Bytes
Binary file not shown.

src/main.rs

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)