qt_d3d9renderer: Make screenshots work

This commit is contained in:
Cacodemon345
2022-07-11 14:43:14 +06:00
committed by GitHub
parent dd867865ed
commit f90a38e162

View File

@@ -152,7 +152,7 @@ void D3D9Renderer::blit(int x, int y, int w, int h)
srcRect.left = source.left();
srcRect.right = source.right();
if (screenshots) {
if (monitors[m_monitor_index].mon_screenshots) {
video_screenshot_monitor((uint32_t *) &(monitors[m_monitor_index].target_buffer->line[y][x]), 0, 0, 2048, m_monitor_index);
}
if (SUCCEEDED(d3d9surface->LockRect(&lockRect, &srcRect, 0))) {