Skip to content

Commit

Permalink
- fixed compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Dec 7, 2018
1 parent bde3558 commit 3491182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/g_statusbar/sbarinfo.cpp
Expand Up @@ -1190,7 +1190,6 @@ class DSBarInfo
{
if (forceWidth < 0) dx -= (texture->GetDisplayWidthDouble()/2.0)-texture->GetDisplayLeftOffsetDouble();
else dx -= forceWidth*(0.5-(texture->GetDisplayLeftOffsetDouble()/texture->GetDisplayWidthDouble()));
//Unoptimalized ^^formula is dx -= forceWidth/2.0-(texture->GetScaledLeftOffsetDouble()*forceWidth/texture->GetDisplayWidthDouble());

if (forceHeight < 0) dy -= (texture->GetDisplayHeightDouble()/2.0)-texture->GetDisplayTopOffsetDouble();
else dy -= forceHeight*(0.5-(texture->GetDisplayTopOffsetDouble()/texture->GetDisplayHeightDouble()));
Expand Down
4 changes: 2 additions & 2 deletions src/swrenderer/textures/warptexture.cpp
Expand Up @@ -57,7 +57,7 @@ bool FWarpTexture::CheckModified (FRenderStyle style)
const uint32_t *FWarpTexture::GetPixelsBgra()
{
auto Pixels = GetPixels(DefaultRenderStyle());
if (PixelsBgra.empty() || GenTime[0] != GenTimeBgra)
if (PixelsBgra.Size() == 0 || GenTime[0] != GenTimeBgra)
{
CreatePixelsBgraWithMipmaps();
for (int i = 0; i < GetWidth() * GetHeight(); i++)
Expand All @@ -70,7 +70,7 @@ const uint32_t *FWarpTexture::GetPixelsBgra()
GenerateBgraMipmapsFast();
GenTimeBgra = GenTime[0];
}
return PixelsBgra.data();
return PixelsBgra.Data();
}


Expand Down

0 comments on commit 3491182

Please sign in to comment.