From 3078b63a3c32b60c539f2f9f5299da0bcc00a89f Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 19 Jun 2008 02:42:19 +0000 Subject: [PATCH] take into account first scanline when drawing the zapper input aid (crosshair) --- src/input/cursor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/input/cursor.cpp b/src/input/cursor.cpp index e45ca83d..043055b6 100644 --- a/src/input/cursor.cpp +++ b/src/input/cursor.cpp @@ -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)