src/video/uikit/SDL_uikitmetalview.m
changeset 12002 9116d02d3feb
parent 11918 c087b18ba812
child 12320 758d4e1222a7
     1.1 --- a/src/video/uikit/SDL_uikitmetalview.m	Thu May 24 07:30:24 2018 -0700
     1.2 +++ b/src/video/uikit/SDL_uikitmetalview.m	Sun May 27 20:30:03 2018 -0400
     1.3 @@ -49,8 +49,8 @@
     1.4  {
     1.5      if ((self = [super initWithFrame:frame])) {
     1.6          self.tag = METALVIEW_TAG;
     1.7 -        /* Set the desired scale. The default drawableSize of a CAMetalLayer
     1.8 -         * is its bounds x its scale so nothing further needs to be done. */
     1.9 +        /* Set the desired scale. */
    1.10 +        ((CAMetalLayer *) self.layer).drawableSize = self.bounds.size;
    1.11          self.layer.contentsScale = scale;
    1.12      }
    1.13