Browse Source

Fix errors rendering progress dialog (#4878)

pull/4879/head
Stephen C. Wills 4 years ago committed by GitHub
parent
commit
4584b41d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      Source/DiabloUI/progress.cpp

6
Source/DiabloUI/progress.cpp

@ -69,11 +69,9 @@ void ProgressRenderBackground()
SDL_FillRect(DiabloUiSurface(), nullptr, 0x000000);
const Surface &out = Surface(DiabloUiSurface());
RenderPcxSprite(out, PcxSpriteSheet { *ArtBackground }.sprite(0), { 0, 0 });
const Point position = GetPosition();
RenderPcxSprite(out, PcxSprite { *ArtPopupSm }, position);
RenderPcxSprite(out, PcxSprite { *ArtProgBG }, { GetCenterOffset(227), position.y + 52 });
RenderPcxSprite(out.subregion(position.x, position.y, 280, 140), PcxSprite { *ArtPopupSm }, { 0, 0 });
RenderPcxSprite(out.subregion(GetCenterOffset(227), 0, 227, out.h()), PcxSprite { *ArtProgBG }, { 0, position.y + 52 });
}
void ProgressRenderForeground(int progress)

Loading…
Cancel
Save