[GC/Wii]
. fixed CD Leds positioning when using NTSC filter . improved CD Leds images (thanks to Iceknight)
@ -725,8 +725,8 @@ static void gxDrawCdLeds(gx_texture *texture_l, gx_texture *texture_r)
|
|||||||
int ywidth = square[4] - square[10];
|
int ywidth = square[4] - square[10];
|
||||||
|
|
||||||
/* adjust texture coordinates to EFB */
|
/* adjust texture coordinates to EFB */
|
||||||
int xl = (((bitmap.viewport.x + 4) * xwidth) / vwidth) + square[9];
|
int xl = (((bitmap.viewport.x + 4) * xwidth) / (bitmap.viewport.w + 2*bitmap.viewport.x)) + square[9];
|
||||||
int xr = (((bitmap.viewport.x + bitmap.viewport.w - 4) * xwidth) / vwidth) + square[9] - w;
|
int xr = xwidth - xl + 2*square[9] - w;
|
||||||
int y = (((bitmap.viewport.y + bitmap.viewport.h - 4) * ywidth) / vheight) + square[10] - h;
|
int y = (((bitmap.viewport.y + bitmap.viewport.h - 4) * ywidth) / vheight) + square[10] - h;
|
||||||
|
|
||||||
/* reset GX rendering */
|
/* reset GX rendering */
|
||||||
|
Before Width: | Height: | Size: 971 B After Width: | Height: | Size: 877 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 901 B After Width: | Height: | Size: 837 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.8 KiB |