Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
commonkestrel committed Jul 27, 2024
1 parent 126aa5c commit 7e2509b
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 15 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ humantime = "2.1"
lazy-regex = "3.1"
libloading = "0.8"
logos = "0.13"
minifb = "0.27.0"
minifb = { git = "https://github.com/emoon/rust_minifb", rev = "d62b0f5" }
modular-bitfield = "0.11"
once_cell = "1.18"
serialport = "4.3"
Expand Down
18 changes: 8 additions & 10 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,18 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-910xg3yq5Ne6XhJ71RVqZW2rAdPciYvIv+Zj5KG86Y0=";
};

nativeBuildInputs = with pkgs; [
pkg-config
openssl.dev
openssl
systemd
];

buildInputs = with pkgs; [
pkg-config
openssl.dev
openssl
systemd
wayland
libGL
libxkbcommon
wayland
libGL
xorg.libX11
xorg.libXrandr
xorg.libXi
xorg.libXcursor
libxkbcommon
];

cargoLock = {
Expand Down
17 changes: 17 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
buildInputs = with pkgs; [
openssl.dev
openssl
systemd
wayland
libGL
pkg-config
xorg.libX11
xorg.libXrandr
xorg.libXi
xorg.libXcursor
libxkbcommon
];
}
4 changes: 2 additions & 2 deletions src/emulator/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ impl TextBuffer {

async fn run_handle(buffer: BufferPtr) {
let mut opts = WindowOptions::default();
// opts.scale = Scale::FitScreen;
opts.scale_mode = ScaleMode::UpperLeft;
opts.scale = Scale::FitScreen;
opts.scale_mode = ScaleMode::AspectRatioStretch;
opts.resize = true;

let mut window =
Expand Down

0 comments on commit 7e2509b

Please sign in to comment.