Merge pull request #2446 from Cacodemon345/patch-88
qt_d3d9renderer: Make screenshots work
This commit is contained in:
@@ -152,7 +152,7 @@ void D3D9Renderer::blit(int x, int y, int w, int h)
|
|||||||
srcRect.left = source.left();
|
srcRect.left = source.left();
|
||||||
srcRect.right = source.right();
|
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);
|
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))) {
|
if (SUCCEEDED(d3d9surface->LockRect(&lockRect, &srcRect, 0))) {
|
||||||
|
Reference in New Issue
Block a user