From d8df35d4189f3b7d066db583bb2fdbd0c7877b16 Mon Sep 17 00:00:00 2001 From: nitsuja Date: Sun, 9 May 2010 18:51:23 +0000 Subject: [PATCH] rasterize: hack to avoid obvious regression of edge mark quality compared to in 0.9.5 (the transparency was not there to compensate for the colors being too dark). should revisit this when working out how antialiasing really works on the ds. --- desmume/src/rasterize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/rasterize.cpp b/desmume/src/rasterize.cpp index 3cfc85765..529c93aca 100644 --- a/desmume/src/rasterize.cpp +++ b/desmume/src/rasterize.cpp @@ -1246,7 +1246,7 @@ void SoftRasterizerEngine::framebufferProcess() for(int i=0;i<8;i++) { u16 col = T1ReadWord(MMU.MMU_MEM[ARMCPU_ARM9][0x40], 0x330+i*2); - edgeMarkColors[i].color = RGB15TO5555(col,0x1F); + edgeMarkColors[i].color = RGB15TO5555(col,gfx3d.state.enableAntialiasing ? 0x0F : 0x1F); edgeMarkColors[i].r = GFX3D_5TO6(edgeMarkColors[i].r); edgeMarkColors[i].g = GFX3D_5TO6(edgeMarkColors[i].g); edgeMarkColors[i].b = GFX3D_5TO6(edgeMarkColors[i].b);