Add some transparency to pause icon
This commit is contained in:
parent
091da2164c
commit
c00ce269f0
2 changed files with 5 additions and 4 deletions
|
@ -195,8 +195,8 @@ void SdlRenderer::Render()
|
||||||
void SdlRenderer::DrawPauseScreen(bool disableOverlay)
|
void SdlRenderer::DrawPauseScreen(bool disableOverlay)
|
||||||
{
|
{
|
||||||
if(disableOverlay) {
|
if(disableOverlay) {
|
||||||
DrawString(L"I", 15, 15, 106, 90, 205);
|
DrawString(L"I", 15, 15, 106, 90, 205, 168);
|
||||||
DrawString(L"I", 23, 15, 106, 90, 205);
|
DrawString(L"I", 23, 15, 106, 90, 205, 168);
|
||||||
} else {
|
} else {
|
||||||
uint32_t textureData = 0x222222AA;
|
uint32_t textureData = 0x222222AA;
|
||||||
SDL_Surface* surf = SDL_CreateRGBSurfaceFrom((void*)&textureData, 1, 1, 32, 4, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF);
|
SDL_Surface* surf = SDL_CreateRGBSurfaceFrom((void*)&textureData, 1, 1, 32, 4, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF);
|
||||||
|
|
|
@ -540,8 +540,9 @@ namespace NES
|
||||||
void Renderer::DrawPauseScreen(bool disableOverlay)
|
void Renderer::DrawPauseScreen(bool disableOverlay)
|
||||||
{
|
{
|
||||||
if(disableOverlay) {
|
if(disableOverlay) {
|
||||||
DrawString("I", 15, 15, Colors::SlateBlue, 2.0f, _font.get());
|
const static XMVECTORF32 transparentBlue = { { { 0.415686309f, 0.352941185f, 0.803921640f, 0.66f } } };
|
||||||
DrawString("I", 32, 15, Colors::SlateBlue, 2.0f, _font.get());
|
DrawString("I", 15, 15, transparentBlue, 2.0f, _font.get());
|
||||||
|
DrawString("I", 32, 15, transparentBlue, 2.0f, _font.get());
|
||||||
} else {
|
} else {
|
||||||
RECT destRect;
|
RECT destRect;
|
||||||
destRect.left = 0;
|
destRect.left = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue