Skip to content

Commit

Permalink
Improve documentation and naming
Browse files Browse the repository at this point in the history
  • Loading branch information
LoipesMas committed Jun 13, 2022
1 parent b5fe545 commit e1d977e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions crates/bevy_window/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,9 @@ pub enum WindowPosition {
///
/// Note that this does not account for window decorations.
Centered,
/// Window will be placed at specified position
/// The window's top-left corner will be placed at the specified position (in pixels)
///
/// (0,0) represents top-left corner of screen space.
At(Vec2),
}

Expand Down Expand Up @@ -721,7 +723,7 @@ impl Default for WindowDescriptor {
title: "app".to_string(),
width: 1280.,
height: 720.,
position: WindowPosition::Default,
position: WindowPosition::Automatic,
resize_constraints: WindowResizeConstraints::default(),
scale_factor_override: None,
present_mode: PresentMode::Fifo,
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_winit/src/winit_windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl WinitWindows {

use bevy_window::WindowPosition::*;
match position {
Default => { /* Window manager will handle position */ }
Automatic => { /* Window manager will handle position */ }
Centered => {
if let Some(monitor) = event_loop.primary_monitor() {
let screen_size = monitor.size();
Expand Down

0 comments on commit e1d977e

Please sign in to comment.