add m_bHalveTextureHeight for 8:3 displays

This commit is contained in:
Chris Danford
2004-04-24 07:54:18 +00:00
parent 3e76470d77
commit 92a3fc49eb
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -19,6 +19,7 @@
#include "RageDisplay.h"
#include "RageTypes.h"
#include "arch/ArchHooks/ArchHooks.h"
#include "PrefsManager.h"
#include "SDL.h"
#include "SDL_endian.h"
@@ -178,6 +179,9 @@ apply_color_key:
m_iImageWidth = min( m_iSourceWidth, actualID.iMaxSize );
m_iImageHeight = min( m_iSourceHeight, actualID.iMaxSize );
if( PREFSMAN->m_bHalveTextureHeight )
m_iImageHeight /= 2;
/* Texture dimensions need to be a power of two; jump to the next. */
m_iTextureWidth = power_of_two(m_iImageWidth);
m_iTextureHeight = power_of_two(m_iImageHeight);