Compare commits
5
Commits
f72701b4c5
...
v0.7.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c52c33ce67 | ||
|
|
7ecb248407 | ||
|
|
fdd71f582b | ||
|
|
83b567cfd4 | ||
|
|
6687b1f12f |
Generated
+170
-170
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -4,7 +4,7 @@ description = "An emulator for the Virtual Boy."
|
||||
repository = "https://git.virtual-boy.com/PVB/lemur"
|
||||
publish = false
|
||||
license = "MIT"
|
||||
version = "0.7.1"
|
||||
version = "0.7.2"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
+1
-1
Submodule shrooms-vb-core updated: ecbd103917...fe9c5c4781
@@ -28,14 +28,14 @@ impl Cart {
|
||||
|
||||
let sram = if sram_file.metadata()?.len() == 0 {
|
||||
// new SRAM file, randomize the contents
|
||||
let mut sram = vec![0; 8 * 1024];
|
||||
let mut sram = vec![0; 16 * 1024];
|
||||
let mut rng = rand::rng();
|
||||
for dst in sram.iter_mut().step_by(2) {
|
||||
*dst = rng.random();
|
||||
}
|
||||
sram
|
||||
} else {
|
||||
let mut sram = Vec::with_capacity(8 * 1024);
|
||||
let mut sram = Vec::with_capacity(16 * 1024);
|
||||
sram_file.read_to_end(&mut sram)?;
|
||||
sram
|
||||
};
|
||||
|
||||
+4
-4
@@ -301,11 +301,11 @@ impl<T: Number> Widget for NumberEdit<'_, T> {
|
||||
|
||||
let mut delta = None;
|
||||
if self.arrows {
|
||||
let arrow_left = res.rect.max.x + 4.0;
|
||||
let arrow_right = res.rect.max.x + 20.0;
|
||||
let arrow_top = res.rect.min.y - 2.0;
|
||||
let arrow_left = res.rect.max.x - 16.0;
|
||||
let arrow_right = res.rect.max.x;
|
||||
let arrow_top = res.rect.min.y;
|
||||
let arrow_middle = (res.rect.min.y + res.rect.max.y) / 2.0;
|
||||
let arrow_bottom = res.rect.max.y + 2.0;
|
||||
let arrow_bottom = res.rect.max.y;
|
||||
|
||||
let top_arrow_rect = Rect {
|
||||
min: (arrow_left, arrow_top).into(),
|
||||
|
||||
Reference in New Issue
Block a user