Skip to content

Commit

Permalink
win32: pass window handle to the window-id property
Browse files Browse the repository at this point in the history
uses the same mechanic as for x11
  • Loading branch information
DeadSix27 authored and Dudemanguy committed Sep 25, 2023
1 parent 44cf628 commit 3665b8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions video/out/w32_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3665b8d

Please sign in to comment.