Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lunabunn committed Jun 5, 2022
1 parent 6945db0 commit d35888a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/sdl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ fn convert_keycode(keycode: Option<SDLKeyCode>) -> Option<KeyCode> {
SDLKeyCode::Backspace => Some(KeyCode::Backspace),
SDLKeyCode::Tab => Some(KeyCode::Tab),
SDLKeyCode::Space => Some(KeyCode::Space),

SDLKeyCode::PageUp => Some(KeyCode::PageUp),
SDLKeyCode::PageDown => Some(KeyCode::PageDown),
SDLKeyCode::End => Some(KeyCode::End),
SDLKeyCode::Home => Some(KeyCode::Home),
SDLKeyCode::Insert => Some(KeyCode::Insert),
SDLKeyCode::Delete => Some(KeyCode::Delete),

SDLKeyCode::Kp0 => Some(KeyCode::Num0),
SDLKeyCode::Kp1 => Some(KeyCode::Num1),
SDLKeyCode::Kp2 => Some(KeyCode::Num2),
Expand Down
2 changes: 1 addition & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub enum KeyCode {
Backspace,
Tab,
Space,

PageUp,
PageDown,
End,
Expand Down
2 changes: 1 addition & 1 deletion src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use etagere::{AllocId, AtlasAllocator};
use fontdue::layout::{GlyphPosition, GlyphRasterConfig, Layout, LayoutSettings, TextStyle};

use crate::assets::ResourceHandle;
use crate::graphics::{Graphics, Sprite, Color};
use crate::graphics::{Color, Graphics, Sprite};

const ATLAS_SIZE: u32 = 2048;

Expand Down

0 comments on commit d35888a

Please sign in to comment.