mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Remove android_main! call
This commit is contained in:
parent
79bed75d28
commit
289bb7bc9f
|
@ -1,14 +1,7 @@
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate android_glue;
|
|
||||||
|
|
||||||
extern crate winit;
|
extern crate winit;
|
||||||
|
|
||||||
use winit::{Event, ElementState, MouseCursor};
|
use winit::{Event, ElementState, MouseCursor};
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
android_start!(main);
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let window = winit::WindowBuilder::new().build().unwrap();
|
let window = winit::WindowBuilder::new().build().unwrap();
|
||||||
window.set_title("A fantastic window!");
|
window.set_title("A fantastic window!");
|
||||||
|
|
|
@ -1,14 +1,7 @@
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate android_glue;
|
|
||||||
|
|
||||||
extern crate winit;
|
extern crate winit;
|
||||||
|
|
||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
android_start!(main);
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// enumerating monitors
|
// enumerating monitors
|
||||||
let monitor = {
|
let monitor = {
|
||||||
|
|
|
@ -1,14 +1,7 @@
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate android_glue;
|
|
||||||
|
|
||||||
extern crate winit;
|
extern crate winit;
|
||||||
|
|
||||||
use winit::{Event, ElementState};
|
use winit::{Event, ElementState};
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
android_start!(main);
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let window = winit::WindowBuilder::new().build().unwrap();
|
let window = winit::WindowBuilder::new().build().unwrap();
|
||||||
window.set_title("winit - Cursor grabbing test");
|
window.set_title("winit - Cursor grabbing test");
|
||||||
|
|
|
@ -1,12 +1,5 @@
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate android_glue;
|
|
||||||
|
|
||||||
extern crate winit;
|
extern crate winit;
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
android_start!(main);
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let window = winit::WindowBuilder::new()
|
let window = winit::WindowBuilder::new()
|
||||||
.with_min_dimensions(400, 200)
|
.with_min_dimensions(400, 200)
|
||||||
|
|
|
@ -1,14 +1,7 @@
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate android_glue;
|
|
||||||
|
|
||||||
extern crate winit;
|
extern crate winit;
|
||||||
|
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
android_start!(main);
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let window1 = winit::WindowBuilder::new().build().unwrap();
|
let window1 = winit::WindowBuilder::new().build().unwrap();
|
||||||
let window2 = winit::WindowBuilder::new().build().unwrap();
|
let window2 = winit::WindowBuilder::new().build().unwrap();
|
||||||
|
|
|
@ -1,12 +1,5 @@
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate android_glue;
|
|
||||||
|
|
||||||
extern crate winit;
|
extern crate winit;
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
android_start!(main);
|
|
||||||
|
|
||||||
fn resize_callback(width: u32, height: u32) {
|
fn resize_callback(width: u32, height: u32) {
|
||||||
println!("Window resized to {}x{}", width, height);
|
println!("Window resized to {}x{}", width, height);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,5 @@
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
#[macro_use]
|
|
||||||
extern crate android_glue;
|
|
||||||
|
|
||||||
extern crate winit;
|
extern crate winit;
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
android_start!(main);
|
|
||||||
|
|
||||||
fn resize_callback(width: u32, height: u32) {
|
fn resize_callback(width: u32, height: u32) {
|
||||||
println!("Window resized to {}x{}", width, height);
|
println!("Window resized to {}x{}", width, height);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue