summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2013-03-27 22:05:34 +0000
committer smf- <smf-@users.noreply.github.com>2013-03-27 22:05:34 +0000
commit40d2b618fc68f7e396c61614a192a191f78cc130 (patch)
tree28f8f3f407a7cd98ecada701c1edb67295532958 /src
parent85322f044a1ba780cb9b64fde86c022de337cd82 (diff)
Some changes to the psx mesh display for debugging. (nw)
Diffstat (limited to 'src')
-rw-r--r--src/emu/video/psx.c10
-rw-r--r--src/emu/video/psx.h1
2 files changed, 4 insertions, 7 deletions
diff --git a/src/emu/video/psx.c b/src/emu/video/psx.c
index 0d508e93deb..30b90c4c77b 100644
--- a/src/emu/video/psx.c
+++ b/src/emu/video/psx.c
@@ -144,12 +144,10 @@ void psxgpu_device::DebugMesh( int n_coordx, int n_coordy )
n_coordx += m_n_displaystartx;
n_coordy += n_displaystarty;
- n_coordx *= 511;
- n_coordx /= DEBUG_MAX - 1;
- n_coordx += 256;
- n_coordy *= 511;
- n_coordy /= DEBUG_MAX - 1;
- n_coordy += 256;
+ n_coordx *= width - 1;
+ n_coordx /= 1023;
+ n_coordy *= height - 1;
+ n_coordy /= 1023;
m_debug.n_coordx[ m_debug.n_coord ] = n_coordx;
m_debug.n_coordy[ m_debug.n_coord ] = n_coordy;
diff --git a/src/emu/video/psx.h b/src/emu/video/psx.h
index 414f39f8bfa..5b82fd7e4e6 100644
--- a/src/emu/video/psx.h
+++ b/src/emu/video/psx.h
@@ -53,7 +53,6 @@ extern const device_type CXD8654Q;
#define MID_SHADE ( 0x80 )
#define DEBUG_COORDS ( 10 )
-#define DEBUG_MAX ( 512 )
struct psx_gpu_debug
{