public static unsafe Rectangle GetViewport(int x, int y, int width, int height) { libobs.gs_rect rect = new libobs.gs_rect(); libobs.gs_get_viewport(out rect); return new Rectangle(rect.x, rect.y, rect.cx, rect.cy); }
public static unsafe Rectangle GetViewport(int x, int y, int width, int height) { libobs.gs_rect rect = new libobs.gs_rect(); libobs.gs_get_viewport(out rect); return(new Rectangle(rect.x, rect.y, rect.cx, rect.cy)); }