Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRTTV committed Mar 12, 2024
1 parent ad9852f commit 15e1223
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/search_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::ops::{Deref, DerefMut};
use std::time::Duration;

use winit::keyboard::KeyCode;
use crate::assets::{ADD_SEARCH_BOOKMARKS, BOOKMARK_UV, DARK_STRIPE_UV, HIDDEN_BOOKMARK_UV, HOVERED_WIDGET_UV, REMOVE_SEARCH_BOOKMARKS, UNSELECTED_WIDGET_UV};
use crate::assets::{ADD_SEARCH_BOOKMARKS, BASE_Z, BOOKMARK_UV, DARK_STRIPE_UV, HIDDEN_BOOKMARK_UV, HOVERED_WIDGET_UV, REMOVE_SEARCH_BOOKMARKS, UNSELECTED_WIDGET_UV};

use crate::color::TextColor;
use crate::{Bookmark, combined_two_sorted, flags, since_epoch, StrExt};
Expand Down Expand Up @@ -84,7 +84,7 @@ impl SearchBox {
pos,
0,
DARK_STRIPE_UV,
(builder.window_width() - 215 - pos.x - 17, 22),
(builder.window_width() - 215 - pos.x, 22),
(16, 16),
);

Expand Down Expand Up @@ -119,8 +119,8 @@ impl SearchBox {
UNSELECTED_WIDGET_UV
};

builder.draw_texture_z((builder.window_width() - 215 - 17, 26), 0, widget_uv, (16, 16));
builder.draw_texture_z((builder.window_width() - 215 - 17, 26), 0, bookmark_uv, (16, 16));
builder.draw_texture_z((builder.window_width() - 215 - 17, 26), BASE_Z, widget_uv, (16, 16));
builder.draw_texture_z((builder.window_width() - 215 - 17, 26), BASE_Z, bookmark_uv, (16, 16));
}

#[inline]
Expand Down
2 changes: 1 addition & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub async fn run() -> ! {
Ok(()) => {}
Err(SurfaceError::Lost | SurfaceError::Outdated) => state.surface.configure(&state.device, &state.config),
Err(SurfaceError::OutOfMemory) => std::process::exit(1),
Err(SurfaceError::Timeout) => error!("Frame took too long to process"),
Err(SurfaceError::Timeout) => { error!("Frame took too long to process") },
}
}
WindowEvent::CloseRequested => std::process::exit(0),
Expand Down

0 comments on commit 15e1223

Please sign in to comment.