Support for multiple Windows
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start at the simulator's Window entry point and reproduce the issue with the two Window objects shown in the report. Review PR #37 for the existing direction, then verify that two displays can be created without the SDL initialization panic while preserving the single-window use case.
Written by the indexing model from the issue text.
Description
- Version of embedded-graphics-simulator in use (if applicable): 0.5.0
- Version of embedded-graphics in use (if applicable): latest
Description of the problem/feature request/other
I have a device with two displays and I wanted to use the simulator as frontend for desktops, and framebuffer for the device itself (removing the with-sdl flag when building embedded).
Because of the two displays, I wanted use two Window objects, but I of course I got this error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "Cannot initialize `Sdl` more than once at a time."'
This doesn't seem to be very hard to fix, at least for my simple use case. There's already a PR (#37). I just wanted to file an issue to track progress of this.
Test case (if applicable)
let window_osd = Window::new(
"OSD",
&OutputSettingsBuilder::new()
.theme(BinaryColorTheme::OledBlue)
.build(),
);
let window_title = Window::new(
"Title",
&OutputSettingsBuilder::new()
.theme(BinaryColorTheme::OledBlue)
.build(),
);
- Dominant language
- Rust
- Stars
- 137
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from embedded-graphics/simulator
-
not linking Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
embedded-graphics/simulator#67 · 3 comments ·
-
Offset display Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
embedded-graphics/simulator#64 · 3 comments ·
All issues in embedded-graphics/simulator
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100