Compare commits
6
Commits
v0.12.1
...
218a1764bc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
218a1764bc | ||
|
|
ea9ca614e9 | ||
|
|
dd9e04f636 | ||
|
|
f37ee878e1 | ||
|
|
bd0a4294e8 | ||
|
|
9934566414 |
Generated
+181
-184
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.12.1"
|
||||
version = "0.12.2"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ RUN apt-get update && \
|
||||
ln -s $(which ld64.lld-21) /usr/bin/ld64.lld && \
|
||||
SDK_VERSION=14.5 UNATTENDED=1 ENABLE_COMPILER_RT_INSTALL=1 TARGET_DIR=/osxcross ./build.sh
|
||||
|
||||
FROM rust:1.94-bookworm
|
||||
FROM rust:1.95-bookworm
|
||||
ADD --chmod=644 "https://apt.llvm.org/llvm-snapshot.gpg.key" /etc/apt/trusted.gpg.d/apt.llvm.org.asc
|
||||
COPY llvm.sources /etc/apt/sources.list.d/llvm.sources
|
||||
COPY install-llvm.sh .
|
||||
|
||||
+11
-8
@@ -288,6 +288,7 @@ impl Application {
|
||||
}
|
||||
}
|
||||
let clipped_primitives = self.ctx.tessellate(output.shapes, output.pixels_per_point);
|
||||
viewport.window.pre_present_notify();
|
||||
self.shared.painter.paint_and_update_textures(
|
||||
viewport.id,
|
||||
output.pixels_per_point,
|
||||
@@ -296,7 +297,6 @@ impl Application {
|
||||
&output.textures_delta,
|
||||
vec![],
|
||||
);
|
||||
viewport.window.pre_present_notify();
|
||||
}
|
||||
let mut active_viewports = ViewportIdSet::default();
|
||||
for (id, update) in updates {
|
||||
@@ -398,22 +398,25 @@ impl ApplicationHandler<UserEvent> for Application {
|
||||
if close_requested && viewport_id == ViewportId::ROOT {
|
||||
event_loop.exit();
|
||||
}
|
||||
if response.repaint {
|
||||
viewport.window.request_redraw();
|
||||
}
|
||||
if !response.consumed {
|
||||
match event {
|
||||
WindowEvent::KeyboardInput { event, .. } => {
|
||||
if !self.app.handle_key_event(viewport_id, &event) {
|
||||
self.controllers.handle_key_event(&event);
|
||||
}
|
||||
WindowEvent::KeyboardInput { event, .. }
|
||||
if !self.app.handle_key_event(viewport_id, &event) =>
|
||||
{
|
||||
self.controllers.handle_key_event(&event);
|
||||
}
|
||||
WindowEvent::Focused(new_focused) => {
|
||||
self.focused = new_focused.then_some(viewport_id);
|
||||
}
|
||||
WindowEvent::RedrawRequested => {
|
||||
self.repaint_all(event_loop);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
if response.repaint {
|
||||
self.repaint_all(event_loop);
|
||||
}
|
||||
self.check_repaint(event_loop);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user