mirror of
https://github.com/holub/mame
synced 2025-05-31 18:11:50 +03:00
slightly different implementation after talking to sar. the 'z' value probably already is 1/z
This commit is contained in:
parent
0c5ebcb2ee
commit
2f3a715a85
@ -1348,7 +1348,7 @@ void render_hline(bitmap_t *bitmap, texinfo *ti, int y, float xl, float xr, floa
|
||||
wbufline = &wbuffer[y][xxl];
|
||||
|
||||
while(xxl < xxr) {
|
||||
if((wl < *wbufline) || *wbufline==0) {
|
||||
if((wl > *wbufline)) {
|
||||
UINT32 c;
|
||||
float u = ul/wl;
|
||||
float v = vl/wl;
|
||||
@ -1614,7 +1614,7 @@ static void testdrawscreen(const running_machine *machine,bitmap_t *bitmap,const
|
||||
for(i=sv; i <= ev; i++)
|
||||
{
|
||||
testvertices *tv = state_ta.grab[rs].showvertices + i;
|
||||
tv->w = tv->z ? 1/tv->z : 0;
|
||||
tv->w = tv->z;// ? 1/tv->z : 0;
|
||||
tv->u = tv->u * (ts->ti.sizex-1) * tv->w;
|
||||
tv->v = tv->v * (ts->ti.sizey-1) * tv->w;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user