trunk/src/osd/modules/render/d3d/d3dhlsl.cpp
| r250294 | r250295 | |
| 1376 | 1376 | : (d3d->window().target()->orientation() & ROT270) == ROT270 |
| 1377 | 1377 | ? 3 |
| 1378 | 1378 | : 0; |
| 1379 | |
| 1380 | screen_device_iterator screen_iterator(machine->root_device()); |
| 1381 | screen_device *screen = screen_iterator.first(); |
| 1382 | for (int i = 0; i < curr_screen; i++) |
| 1383 | { |
| 1384 | screen = screen_iterator.next(); |
| 1385 | } |
| 1386 | render_container &screen_container = screen->container(); |
| 1379 | 1387 | |
| 1380 | | render_container &screen_container = machine->first_screen()->container(); |
| 1381 | | |
| 1382 | 1388 | float xscale = screen_container.xscale(); |
| 1383 | 1389 | float yscale = screen_container.yscale(); |
| 1384 | 1390 | float xoffset = -screen_container.xoffset(); |
| 1385 | | float yoffset = -screen_container.yoffset(); |
| 1391 | float yoffset = -screen_container.yoffset(); |
| 1386 | 1392 | |
| 1387 | 1393 | float screen_scale[2] = { xscale, yscale }; |
| 1388 | | float screen_offset[2] = { xoffset, yoffset }; |
| 1394 | float screen_offset[2] = { xoffset, yoffset }; |
| 1389 | 1395 | |
| 1390 | 1396 | curr_effect = post_effect; |
| 1391 | 1397 | curr_effect->update_uniforms(); |
| r250294 | r250295 | |
| 1671 | 1677 | |
| 1672 | 1678 | if (PRIMFLAG_GET_SCREENTEX(d3d->get_last_texture_flags()) && curr_texture != NULL) |
| 1673 | 1679 | { |
| 1680 | curr_screen = curr_screen < num_screens ? curr_screen : 0; |
| 1681 | |
| 1674 | 1682 | curr_render_target = find_render_target(curr_texture); |
| 1675 | 1683 | |
| 1676 | 1684 | render_target *rt = curr_render_target; |
| r250294 | r250295 | |
| 1712 | 1720 | curr_texture->mask_frame_count(options->yiq_phase_count); |
| 1713 | 1721 | |
| 1714 | 1722 | options->params_dirty = false; |
| 1723 | |
| 1724 | curr_screen++; |
| 1715 | 1725 | } |
| 1716 | 1726 | else if (PRIMFLAG_GET_VECTOR(poly->get_flags()) && vector_enable) |
| 1717 | 1727 | { |