take into account first scanline when drawing the zapper input aid (crosshair)

This commit is contained in:
zeromus 2008-06-19 02:42:19 +00:00
parent 0eef479304
commit 3078b63a3c
1 changed files with 4 additions and 2 deletions

View File

@ -43,6 +43,8 @@ void FCEU_DrawGunSight(uint8 *buf, int xc, int yc)
int x,y;
int c,d;
buf += FSettings.FirstSLine * 256;
for(y=0;y<13;y++)
for(x=0;x<13;x++)
{
@ -50,8 +52,8 @@ void FCEU_DrawGunSight(uint8 *buf, int xc, int yc)
a=GunSight[y*13+x];
if(a)
{
c=(yc+y-7);
d=(xc+x-7);
c=(yc+y-6);
d=(xc+x-6);
if(c>=0 && d>=0 && d<256 && c<240)
{
if(a==3)