History

Use a consistent default for window scaling (#38527)

(And make it 2, because most macs have retina screens) Release Notes: - N/A

Conrad Irwin committed 1 year ago

Commit dccbb471 parent b97843e1 file · +1 −1Browse files

Unified · Split

crates/gpui/src/platform/mac/window.rs+1−1
@@ -1566,7 +1566,7 @@ fn get_scale_factor(native_window: id) -> f32 { · 1565 unmodified lines
1566 let factor = unsafe {1566 let factor = unsafe {
1567 let screen: id = msg_send![native_window, screen];1567 let screen: id = msg_send![native_window, screen];
1568 if screen.is_null() {1568 if screen.is_null() {
1569 return 1.0;1569 return 2.0;
1570 }1570 }
1571 NSScreen::backingScaleFactor(screen) as f321571 NSScreen::backingScaleFactor(screen) as f32
1572 };1572 };