Skip to content

Commit

Permalink
vulkan/context: trying these events for resizing the window
Browse files Browse the repository at this point in the history
  • Loading branch information
themisterholliday committed Mar 6, 2024
1 parent d5fd955 commit df5dcd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions video/out/vulkan/context_moltenvk.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ - (void)layoutSublayersOfLayer: (CALayer*) layer
MP_MSG(_ra_ctx, MSGL_V, "### MetalLayerDelegate > Called layoutSublayersOfLayer\n");

moltenvk_reconfig(_ra_ctx);
vo_event(_ra_ctx->vo, VO_EVENT_RESIZE);
vo_event(_ra_ctx->vo, VO_EVENT_EXPOSE);
}

@end
Expand Down Expand Up @@ -112,6 +110,9 @@ static bool moltenvk_reconfig(struct ra_ctx *ctx)
struct priv *p = ctx->priv;
CGSize s = p->layer.drawableSize;
ra_vk_ctx_resize(ctx, s.width, s.height);
vo_event(_ra_ctx->vo, VO_EVENT_RESIZE);
vo_event(_ra_ctx->vo, VO_EVENT_EXPOSE);
vo_event(_ra_ctx->vo, VO_EVENT_WIN_STATE);
MP_MSG(ctx, MSGL_V, "Width: %f, Height: %f ### Called resize\n", s.width, s.height);
return true;
}
Expand Down

0 comments on commit df5dcd7

Please sign in to comment.