Revert "fix default size"

This reverts commit bfc74a75b6.
This commit is contained in:
Lucas Nogueira
2025-11-12 15:19:41 -03:00
parent bfc74a75b6
commit e97e2e5229

View File

@@ -2069,10 +2069,7 @@ fn default_window_label() -> String {
}
fn default_width() -> Option<f64> {
// the config is generated by a proc macro, so we have to check CARGO_CFG_TARGET_OS since proc macros run on the host target
if cfg!(any(target_os = "ios", target_os = "android"))
|| std::env::var("CARGO_CFG_TARGET_OS").map_or(false, |os| os == "ios" || os == "android")
{
if cfg!(any(target_os = "ios", target_os = "android")) {
None
} else {
Some(800.)
@@ -2080,10 +2077,7 @@ fn default_width() -> Option<f64> {
}
fn default_height() -> Option<f64> {
// the config is generated by a proc macro, so we have to check CARGO_CFG_TARGET_OS since proc macros run on the host target
if cfg!(any(target_os = "ios", target_os = "android"))
|| std::env::var("CARGO_CFG_TARGET_OS").map_or(false, |os| os == "ios" || os == "android")
{
if cfg!(any(target_os = "ios", target_os = "android")) {
None
} else {
Some(600.)