mirror of https://github.com/mpv-player/mpv
win32: pass window handle to the window-id property
uses the same mechanic as for x11
This commit is contained in:
parent
44cf6288c7
commit
3665b8d1d8
|
@ -1868,6 +1868,12 @@ static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg)
|
|||
|
||||
return VO_TRUE;
|
||||
}
|
||||
case VOCTRL_GET_WINDOW_ID: {
|
||||
if (!w32->window)
|
||||
return VO_NOTAVAIL;
|
||||
*(int64_t *)arg = (int64_t)w32->window;
|
||||
return VO_TRUE;
|
||||
}
|
||||
case VOCTRL_GET_HIDPI_SCALE: {
|
||||
*(double *)arg = w32->dpi_scale;
|
||||
return VO_TRUE;
|
||||
|
|
Loading…
Reference in New Issue