small fix: initResolutionList also works for iphone
This commit is contained in:
@@ -93,22 +93,15 @@ void CVideoDriver::resetSettings() {
|
|||||||
BlitSurface=NULL;
|
BlitSurface=NULL;
|
||||||
|
|
||||||
#if defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR)
|
#if defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR)
|
||||||
m_Resolution.width = 320; // 320;
|
|
||||||
m_Resolution.height = 200; // 480;
|
|
||||||
m_Resolution.depth = 32;
|
|
||||||
m_Resolutionlist.push_back(m_Resolution);
|
|
||||||
m_Resolution_pos = m_Resolutionlist.begin();
|
|
||||||
|
|
||||||
Zoom = 1;
|
Zoom = 1;
|
||||||
Filtermode = 0;
|
Filtermode = 0;
|
||||||
FrameSkip=1;
|
FrameSkip=1;
|
||||||
m_targetfps = 30;
|
m_targetfps = 30;
|
||||||
m_aspect_correction = false;
|
m_aspect_correction = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
|
||||||
m_Resolution_pos = m_Resolutionlist.begin();
|
m_Resolution_pos = m_Resolutionlist.begin();
|
||||||
initResolutionList();
|
initResolutionList();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CVideoDriver::CVideoDriver() {
|
CVideoDriver::CVideoDriver() {
|
||||||
@@ -121,6 +114,16 @@ CVideoDriver::~CVideoDriver() {
|
|||||||
|
|
||||||
void CVideoDriver::initResolutionList()
|
void CVideoDriver::initResolutionList()
|
||||||
{
|
{
|
||||||
|
#if defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR)
|
||||||
|
m_Resolution.width = 320; // 320;
|
||||||
|
m_Resolution.height = 200; // 480;
|
||||||
|
m_Resolution.depth = 32;
|
||||||
|
m_Resolutionlist.push_back(m_Resolution);
|
||||||
|
m_Resolution_pos = m_Resolutionlist.begin();
|
||||||
|
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
st_resolution resolution;
|
st_resolution resolution;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user