mirror of
https://github.com/holub/mame
synced 2025-06-07 13:23:50 +03:00
Fixed half pixel offset of vectors in D3D
- appearance should be identical to GDI and BGFX
This commit is contained in:
parent
68669f5596
commit
29d11280a1
@ -1636,6 +1636,8 @@ void renderer_d3d9::batch_vector(const render_primitive &prim, float line_time)
|
|||||||
// set the color, Z parameters to standard values
|
// set the color, Z parameters to standard values
|
||||||
for (int i = 0; i < 6; i++)
|
for (int i = 0; i < 6; i++)
|
||||||
{
|
{
|
||||||
|
m_vectorbatch[m_batchindex + i].x -= 0.5f;
|
||||||
|
m_vectorbatch[m_batchindex + i].y -= 0.5f;
|
||||||
m_vectorbatch[m_batchindex + i].z = 0.0f;
|
m_vectorbatch[m_batchindex + i].z = 0.0f;
|
||||||
m_vectorbatch[m_batchindex + i].rhw = 1.0f;
|
m_vectorbatch[m_batchindex + i].rhw = 1.0f;
|
||||||
m_vectorbatch[m_batchindex + i].color = color;
|
m_vectorbatch[m_batchindex + i].color = color;
|
||||||
|
Loading…
Reference in New Issue
Block a user