[Gamecube/Wii] fixed lightgun crosshair & CD leds positionning when using NTSC filter

This commit is contained in:
EkeEke 2014-07-07 23:19:57 +02:00
parent 8c91bdc05e
commit 35f3509e36
4 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 MiB

After

Width:  |  Height:  |  Size: 3.8 MiB

View File

@ -667,8 +667,8 @@ static void gxDrawCrosshair(gx_texture *texture, int x, int y)
int ywidth = square[3] - square[7];
/* adjust texture coordinates to EFB */
x = (((x + bitmap.viewport.x) * xwidth) / vwidth) + square[6] - w/2;
y = (((y + bitmap.viewport.y) * ywidth) / vheight) + square[7] - h/2;
x = (((x + bitmap.viewport.x) * xwidth) / (bitmap.viewport.w+2*bitmap.viewport.x)) + square[6] - w/2;
y = (((y + bitmap.viewport.y) * ywidth) / (bitmap.viewport.h+2*bitmap.viewport.y)) + square[7] - h/2;
/* load texture object */
GXTexObj texObj;