1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 22:30:03 -04:00

Add simple Windows CI workflow check (#2663)

* Add simple Windows CI workflow check

* Fix Windows build in CI

* Windows fix
This commit is contained in:
John Hughes
2023-02-03 13:19:12 +01:00
committed by GitHub
parent 5725868b57
commit 8c59888ebd
4 changed files with 25 additions and 3 deletions

View File

@@ -172,7 +172,7 @@ fn window_builder_drag_and_drop(
enable: bool,
) -> winit::window::WindowBuilder {
use winit::platform::windows::WindowBuilderExtWindows as _;
build_window.with_drag_and_drop(enable)
window_builder.with_drag_and_drop(enable)
}
#[cfg(not(target_os = "windows"))]

View File

@@ -29,7 +29,7 @@ impl GlutinWindowContext {
// try egl and fallback to windows wgl. Windows is the only platform that *requires* window handle to create display.
#[cfg(target_os = "windows")]
let preference = glutin::display::DisplayApiPreference::EglThenWgl(Some(window_handle));
let preference = glutin::display::DisplayApiPreference::EglThenWgl(Some(raw_window_handle));
// try egl and fallback to x11 glx
#[cfg(target_os = "linux")]
let preference = glutin::display::DisplayApiPreference::EglThenGlx(Box::new(