Skip to content

Commit

Permalink
HudBox fixes for Windows Version
Browse files Browse the repository at this point in the history
  • Loading branch information
gerstrong committed Dec 31, 2017
1 parent f80610b commit 8c11611
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engine/core/CHUD.cpp
Expand Up @@ -31,8 +31,8 @@ timer(0)
void CHUD::createHUDBlit()
{
mHUDBlit.createRGBSurface(mRenderRect);
mHUDBlit.makeBlitCompatible();
mHUDBlit.setAlpha(220);
mHUDBlit.makeBlitCompatible();
}

void CHUD::setup(const int id)
Expand Down Expand Up @@ -62,6 +62,8 @@ void CHUD::setup(const int id)
auto &hudBg = *gGraphics.getSprite(mId,"HUDBACKGROUND");

mHUDBox.copy(hudBg);

mHUDBox.Surface().makeBlitCompatible();

mRenderRect.h = mHUDBox.getHeight();
mRenderRect.w = mHUDBox.getWidth()-7;
Expand Down

0 comments on commit 8c11611

Please sign in to comment.