render_primitive_list *renderer_gdi::get_primitives() { auto win = try_getwindow(); if (win == nullptr) return nullptr; RECT client; GetClientRect(win->platform_window<HWND>(), &client); win->target()->set_bounds(rect_width(&client), rect_height(&client), win->pixel_aspect()); return &win->target()->get_primitives(); }
render_primitive_list *renderer_sdl2::get_primitives() { auto win = assert_window(); if (win == nullptr) return nullptr; osd_dim nd = win->get_size(); if (nd != m_blit_dim) { m_blit_dim = nd; notify_changed(); } win->target()->set_bounds(m_blit_dim.width(), m_blit_dim.height(), win->pixel_aspect()); return &win->target()->get_primitives(); }