Skip to content

Commit

Permalink
update from portlight to reflector-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
glowcoil committed Aug 22, 2024
1 parent 9c1857b commit f43e0b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/gain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ formats = ["clap", "vst3"]
coupler = { workspace = true, features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
portlight = { git = "https://github.com/coupler-rs/portlight", rev = "1916eeaa4ffcbccc29b35a10ade200f25e9bf30a" }
reflector-platform = { git = "https://github.com/coupler-rs/reflector", rev = "9295afd43c46b0b27e2a88456dede9adc4d7413e" }
12 changes: 6 additions & 6 deletions examples/gain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::io::{self, Read, Write};

use serde::{Deserialize, Serialize};

use portlight::{App, AppMode, AppOptions, Response, Window, WindowOptions};
use reflector_platform::{App, AppMode, AppOptions, Response, Window, WindowOptions};

use coupler::format::clap::*;
use coupler::format::vst3::*;
Expand Down Expand Up @@ -138,16 +138,16 @@ pub struct GainEditor {
}

impl GainEditor {
fn open(parent: Parent) -> portlight::Result<GainEditor> {
fn open(parent: Parent) -> reflector_platform::Result<GainEditor> {
let app = AppOptions::new().mode(AppMode::Guest).build()?;

let mut options = WindowOptions::new();
options.size(portlight::Size::new(512.0, 512.0));
options.size(reflector_platform::Size::new(512.0, 512.0));

let raw_parent = match parent.as_raw() {
RawParent::Win32(window) => portlight::RawParent::Win32(window),
RawParent::Cocoa(view) => portlight::RawParent::Cocoa(view),
RawParent::X11(window) => portlight::RawParent::X11(window),
RawParent::Win32(window) => reflector_platform::RawWindow::Win32(window),
RawParent::Cocoa(view) => reflector_platform::RawWindow::Cocoa(view),
RawParent::X11(window) => reflector_platform::RawWindow::X11(window),
};
unsafe { options.raw_parent(raw_parent) };

Expand Down

0 comments on commit f43e0b2

Please sign in to comment.