mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
cocoa: fix some pointer casts to be 32bit safe
credits: wm4
This commit is contained in:
parent
c8ed4736ef
commit
7968814470
@ -82,7 +82,7 @@ static void wakeup(void *);
|
||||
}
|
||||
|
||||
#if EMBED_VIEW
|
||||
uintptr_t wid = (uintptr_t)self->w;
|
||||
int64_t wid = (intptr_t) self->w;
|
||||
check_error(mpv_set_option(mpv, "wid", MPV_FORMAT_INT64, &wid));
|
||||
#endif
|
||||
|
||||
|
@ -300,7 +300,7 @@ static void create_ui(struct vo *vo, struct mp_rect *win, int geo_flags)
|
||||
NSMakeRect(win->x0, win->y0, win->x1 - win->x0, win->y1 - win->y0);
|
||||
|
||||
if (opts->WinID >= 0) {
|
||||
s->window = (NSWindow *) opts->WinID;
|
||||
s->window = (NSWindow *) (intptr_t) opts->WinID;
|
||||
} else {
|
||||
s->window = create_window(contentRect, s->current_screen,
|
||||
opts->border, adapter);
|
||||
|
Loading…
Reference in New Issue
Block a user