1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-11-30 08:08:18 +00:00

send more help

This commit is contained in:
Alula 2021-08-13 04:23:50 +02:00
parent 329cd9d646
commit 7f65136f3d
2 changed files with 8 additions and 6 deletions

View file

@ -4,11 +4,11 @@ environment:
global:
PROJECT_NAME: doukutsu-rs
matrix:
- channel: nightly
target: x86_64-pc-windows-msvc
target_name: win64
job_name: windows-x64
appveyor_build_worker_image: Visual Studio 2019
# - channel: nightly
# target: x86_64-pc-windows-msvc
# target_name: win64
# job_name: windows-x64
# appveyor_build_worker_image: Visual Studio 2019
# - channel: stable
# target: i686-pc-windows-msvc
# target_name: win32
@ -60,7 +60,7 @@ for:
- appveyor_build_worker_image: macos
install:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -- -yv --default-toolchain $channel --default-host $target
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -yv --default-toolchain $channel --default-host $target
- export PATH=$PATH:$HOME/.cargo/bin
- rustup update
- rustup default $channel

View file

@ -131,6 +131,8 @@ impl BackendEventLoop for SDL2EventLoop {
#[cfg(target_os = "macos")]
unsafe {
use objc::*;
// no UB: fields are initialized by SDL_GetWindowWMInfo
let mut winfo: sdl2_sys::SDL_SysWMinfo = mem::MaybeUninit::uninit().assume_init();
winfo.version.major = sdl2_sys::SDL_MAJOR_VERSION as _;
winfo.version.minor = sdl2_sys::SDL_MINOR_VERSION as _;