mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Use computed sizes for ViziaState
This commit is contained in:
@@ -60,7 +60,7 @@ impl Model for Data {}
|
||||
|
||||
// Makes sense to also define this here, makes it a bit easier to keep track of
|
||||
pub(crate) fn default_state() -> Arc<ViziaState> {
|
||||
ViziaState::from_size(EDITOR_WIDTH, EDITOR_HEIGHT, false)
|
||||
ViziaState::new(|| (EDITOR_WIDTH, EDITOR_HEIGHT))
|
||||
}
|
||||
|
||||
pub(crate) fn create(editor_data: Data, editor_state: Arc<ViziaState>) -> Option<Box<dyn Editor>> {
|
||||
|
||||
Reference in New Issue
Block a user