Skip to content

Commit

Permalink
make lowres preload actually low res
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 5, 2017
1 parent 0e15bf9 commit dfe35bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BannerCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ void BannerCache::CacheBannerInternal( const RString &sBannerPath )
const int iSourceWidth = pImage->w, iSourceHeight = pImage->h;

// cap banners to reasonable dimensions....? -mina
int iWidth = min(pImage->w, 512), iHeight = min(pImage->h, 160);
int iWidth = min(pImage->w, 256), iHeight = min(pImage->h, 64);

/* Round to the nearest power of two. This simplifies the actual texture load. */
iWidth = closest( iWidth, power_of_two(iWidth), power_of_two(iWidth) / 2 );
Expand Down

0 comments on commit dfe35bc

Please sign in to comment.