Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0086b9c9ce | ||
|
|
a87fce102d | ||
|
|
1cae0c8e54 | ||
|
|
707dd3a200 | ||
|
|
b79f35ac61 | ||
|
|
89128b8207 | ||
|
|
b0404a5da2 | ||
|
|
16cf54e5cf |
Generated
+1
-1
@@ -1763,7 +1763,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lemur"
|
name = "lemur"
|
||||||
version = "0.2.7"
|
version = "0.3.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"atoi",
|
"atoi",
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ description = "An emulator for the Virtual Boy."
|
|||||||
repository = "https://git.virtual-boy.com/PVB/lemur"
|
repository = "https://git.virtual-boy.com/PVB/lemur"
|
||||||
publish = false
|
publish = false
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
version = "0.2.7"
|
version = "0.3.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
+1
-1
Submodule shrooms-vb-core updated: 57dcd8370a...155a3aa678
+3
-7
@@ -142,8 +142,7 @@ impl GameWindow {
|
|||||||
fn show_options_menu(&mut self, ctx: &Context, ui: &mut Ui) {
|
fn show_options_menu(&mut self, ctx: &Context, ui: &mut Ui) {
|
||||||
ui.menu_button("Video", |ui| {
|
ui.menu_button("Video", |ui| {
|
||||||
ui.menu_button("Screen Size", |ui| {
|
ui.menu_button("Screen Size", |ui| {
|
||||||
let current_dims = ctx.input(|i| i.viewport().inner_rect.unwrap());
|
let current_dims = self.config.dimensions;
|
||||||
let current_dims = current_dims.max - current_dims.min;
|
|
||||||
|
|
||||||
for scale in 1..=4 {
|
for scale in 1..=4 {
|
||||||
let label = format!("x{scale}");
|
let label = format!("x{scale}");
|
||||||
@@ -183,10 +182,7 @@ impl GameWindow {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let current_dims = {
|
let current_dims = self.config.dimensions;
|
||||||
let viewport = ctx.input(|i| i.viewport().inner_rect.unwrap());
|
|
||||||
viewport.max - viewport.min
|
|
||||||
};
|
|
||||||
let new_proportions = display_mode.proportions();
|
let new_proportions = display_mode.proportions();
|
||||||
let scale = new_proportions / old_proportions;
|
let scale = new_proportions / old_proportions;
|
||||||
if scale != Vec2::new(1.0, 1.0) {
|
if scale != Vec2::new(1.0, 1.0) {
|
||||||
@@ -330,7 +326,7 @@ impl AppWindow for GameWindow {
|
|||||||
|
|
||||||
fn show(&mut self, ctx: &Context) {
|
fn show(&mut self, ctx: &Context) {
|
||||||
let dimensions = {
|
let dimensions = {
|
||||||
let bounds = ctx.input(|i| i.viewport().inner_rect.unwrap());
|
let bounds = ctx.available_rect();
|
||||||
bounds.max - bounds.min
|
bounds.max - bounds.min
|
||||||
};
|
};
|
||||||
self.update_config(|c| c.dimensions = dimensions);
|
self.update_config(|c| c.dimensions = dimensions);
|
||||||
|
|||||||
Reference in New Issue
Block a user