Add some transparency to pause icon

This commit is contained in:
Sour 2018-05-26 01:16:32 -04:00
parent 091da2164c
commit c00ce269f0
2 changed files with 5 additions and 4 deletions

View file

@ -195,8 +195,8 @@ void SdlRenderer::Render()
void SdlRenderer::DrawPauseScreen(bool disableOverlay)
{
if(disableOverlay) {
DrawString(L"I", 15, 15, 106, 90, 205);
DrawString(L"I", 23, 15, 106, 90, 205);
DrawString(L"I", 15, 15, 106, 90, 205, 168);
DrawString(L"I", 23, 15, 106, 90, 205, 168);
} else {
uint32_t textureData = 0x222222AA;
SDL_Surface* surf = SDL_CreateRGBSurfaceFrom((void*)&textureData, 1, 1, 32, 4, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF);

View file

@ -540,8 +540,9 @@ namespace NES
void Renderer::DrawPauseScreen(bool disableOverlay)
{
if(disableOverlay) {
DrawString("I", 15, 15, Colors::SlateBlue, 2.0f, _font.get());
DrawString("I", 32, 15, Colors::SlateBlue, 2.0f, _font.get());
const static XMVECTORF32 transparentBlue = { { { 0.415686309f, 0.352941185f, 0.803921640f, 0.66f } } };
DrawString("I", 15, 15, transparentBlue, 2.0f, _font.get());
DrawString("I", 32, 15, transparentBlue, 2.0f, _font.get());
} else {
RECT destRect;
destRect.left = 0;