mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-26 19:21:49 +01:00
[Gamecube/Wii] fixed lightgun crosshair & CD leds positionning when using NTSC filter
This commit is contained in:
parent
8c91bdc05e
commit
35f3509e36
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 |
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user