fix up look sharp

This commit is contained in:
Alex Janka 2023-05-03 14:54:59 +10:00
parent fb0dbf2f33
commit 66f9ce31bc
7 changed files with 9 additions and 9 deletions

6
Cargo.lock generated
View file

@ -1130,7 +1130,7 @@ dependencies = [
[[package]] [[package]]
name = "gb-emu" name = "gb-emu"
version = "0.3.1" version = "0.3.2"
dependencies = [ dependencies = [
"clap", "clap",
"cpal", "cpal",
@ -1147,7 +1147,7 @@ dependencies = [
[[package]] [[package]]
name = "gb-emu-lib" name = "gb-emu-lib"
version = "0.1.0" version = "0.3.2"
dependencies = [ dependencies = [
"async-ringbuf", "async-ringbuf",
"bytemuck", "bytemuck",
@ -3022,7 +3022,7 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]] [[package]]
name = "vst" name = "vst"
version = "0.3.0" version = "0.3.2"
dependencies = [ dependencies = [
"async-ringbuf", "async-ringbuf",
"baseview", "baseview",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "gb-emu" name = "gb-emu"
version = "0.3.1" version = "0.3.2"
edition = "2021" edition = "2021"
[features] [features]

View file

@ -1,6 +1,6 @@
[package] [package]
name = "vst" name = "vst"
version = "0.3.0" version = "0.3.2"
edition = "2021" edition = "2021"
[lib] [lib]

View file

@ -1,6 +1,6 @@
[package] [package]
name = "gb-emu-lib" name = "gb-emu-lib"
version = "0.1.0" version = "0.3.2"
edition = "2021" edition = "2021"
[features] [features]

View file

@ -376,7 +376,7 @@ where
} }
fn parse_oam(&mut self, scanline: u8) -> Vec<Object> { fn parse_oam(&mut self, scanline: u8) -> Vec<Object> {
let mut objs = vec![]; let mut objs = vecVec::new();
let effective_scanline = scanline + 16; let effective_scanline = scanline + 16;
for i in (0xFE00..0xFE9F).step_by(4) { for i in (0xFE00..0xFE9F).step_by(4) {
let y_pos = self.oam.get(i.try_into().unwrap()); let y_pos = self.oam.get(i.try_into().unwrap());

View file

@ -43,7 +43,7 @@ const NUM_WRITES_TO_FLUSH: usize = 256;
impl MaybeBufferedSram { impl MaybeBufferedSram {
fn new(path: Option<PathBuf>, length: usize) -> Self { fn new(path: Option<PathBuf>, length: usize) -> Self {
let mut buf = vec![]; let mut buf = vecVec::new();
let inner = if let Some(path) = path { let inner = if let Some(path) = path {
if path.exists() { if path.exists() {
let mut writer = OpenOptions::new() let mut writer = OpenOptions::new()

View file

@ -107,7 +107,7 @@ pub fn scale_buffer<T: From<Colour> + Copy>(
height: usize, height: usize,
factor: usize, factor: usize,
) -> Vec<T> { ) -> Vec<T> {
let mut v = vec![]; let mut v = Vec::new();
for y in 0..height { for y in 0..height {
for _ in 0..factor { for _ in 0..factor {
for x in 0..width { for x in 0..width {