From 5fc07b4c3c39b4d4734d490fac4d378c86e793f3 Mon Sep 17 00:00:00 2001 From: mniip Date: Fri, 13 Dec 2013 04:51:00 +0400 Subject: [PATCH] fix PHOT/BIZ* transparency --- src/gui/game/GameView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 7987000f3..e6370212a 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -2145,7 +2145,7 @@ void GameView::OnDraw() { int i, cr, cg, cb, j, h = 3, x = XRES-19-textWidth, y = 10; int tmp; - g->fillrect(x, y, 30, h, 64, 64, 64, 255); // coords -1 size +1 to work around bug in fillrect - TODO: fix fillrect + g->fillrect(x, y, 30, h, 64, 64, 64, alpha); // coords -1 size +1 to work around bug in fillrect - TODO: fix fillrect for (i = 0; i < 30; i++) { if ((wavelengthGfx >> i)&1) @@ -2171,7 +2171,7 @@ void GameView::OnDraw() cg *= tmp; cb *= tmp; for (j=0; jblendpixel(x+29-i,y+j,cr>255?255:cr,cg>255?255:cg,cb>255?255:cb,255); + g->blendpixel(x+29-i, y+j, cr>255?255:cr, cg>255?255:cg, cb>255?255:cb, alpha); } } } @@ -2190,7 +2190,7 @@ void GameView::OnDraw() sampleInfo << " GX: " << sample.GravityVelocityX << " GY: " << sample.GravityVelocityY; textWidth = Graphics::textwidth((char*)sampleInfo.str().c_str()); - g->fillrect(XRES-20-textWidth, 26, textWidth+8, 15, 0, 0, 0, alpha*0.5f); + g->fillrect(XRES-20-textWidth, 27, textWidth+8, 14, 0, 0, 0, alpha*0.5f); g->drawtext(XRES-16-textWidth, 30, (const char*)sampleInfo.str().c_str(), 255, 255, 255, alpha*0.75f); } }