add m_bHalveTextureHeight for 8:3 displays
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user