. fixed CD Leds positioning when using NTSC filter
. improved CD Leds images (thanks to Iceknight)
This commit is contained in:
EkeEke 2012-12-02 20:34:40 +01:00
parent ce3efb00b3
commit 886084ca34
5 changed files with 2 additions and 2 deletions

View File

@ -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 */

Binary file not shown.

Before

Width:  |  Height:  |  Size: 971 B

After

Width:  |  Height:  |  Size: 877 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 901 B

After

Width:  |  Height:  |  Size: 837 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB