Skip to content

Commit 0a875f6

Browse files
committed
Derive PartialEq for WindowMode (#1688)
Many a game will provide some sort of video settings where a window mode option is a common inclusion. I ran into problems, however, with [egui's](https://github.com/emilk/egui) `combo_box` that imposes a `PartialEq` necessity. Deriving the trait would fix this problem, and as this does not break any existing API it should be a non-controversial change.
1 parent cd4c684 commit 0a875f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_window/src/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ pub enum WindowCommand {
183183
/// defines whether a videomode is chosen that best fits the width and height
184184
/// in the Window structure, or if these are ignored.
185185
/// E.g. when use_size is set to false the best video mode possible is chosen.
186-
#[derive(Debug, Clone, Copy)]
186+
#[derive(Debug, Clone, Copy, PartialEq)]
187187
pub enum WindowMode {
188188
Windowed,
189189
BorderlessFullscreen,

0 commit comments

Comments
 (0)