We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e3e30 commit b43f8bdCopy full SHA for b43f8bd
wgpu-hal/src/metal/surface.rs
@@ -230,6 +230,9 @@ impl super::Surface {
230
let frame: CGRect = msg_send![root_layer, bounds];
231
let () = msg_send![new_layer, setFrame: frame];
232
233
+ // The gravity to use when the layer's `drawableSize` isn't the
234
+ // same as the bounds rectangle.
235
+ //
236
// The desired content gravity is `kCAGravityResize`, because it
237
// masks / alleviates issues with resizing when
238
// `present_with_transaction` is disabled, and behaves better when
0 commit comments