This commit is contained in:
Paul 2000-11-24 16:14:55 +00:00
parent 9bd5af6beb
commit df57fbe7b9
3 changed files with 24 additions and 0 deletions

View file

@ -58,6 +58,10 @@
#include "pad\pads.h"
#endif
#ifndef __VID_HEADER_
#include "system\vid.h"
#endif
/* Std Lib
------- */
@ -249,6 +253,14 @@ void CFrontEndOptions::init()
// Populate SCREEN menu
CGUIFactory::createSliderButtonFrame(m_modeMenus[MODE__SCREEN],
X_BORDER,Y_BORDER,412-(X_BORDER*2),35,
STR__FRONTEND__HORIZONTAL_POSITION,
&m_screenXOff,0,64);
CGUIFactory::createSliderButtonFrame(m_modeMenus[MODE__SCREEN],
X_BORDER,Y_BORDER+40,412-(X_BORDER*2),35,
STR__FRONTEND__VERTICAL_POSITION,
&m_screenYOff,0,32);
// Populate SOUND menu
@ -278,6 +290,8 @@ void CFrontEndOptions::init()
m_sfxVolume=CSoundMediator::getVolume(CSoundMediator::SFX);
m_speechVolume=CSoundMediator::getVolume(CSoundMediator::SPEECH);
m_controlStyle=CPadConfig::getConfig();
m_screenXOff=VidGetXOfs();
m_screenYOff=VidGetYOfs();
}
/*----------------------------------------------------------------------
@ -395,6 +409,10 @@ void CFrontEndOptions::think(int _frames)
PAUL_DBGMSG("SPEECH");
}
}
else if(m_mode==MODE__SCREEN)
{
VidSetXYOfs(m_screenXOff,m_screenYOff);
}
}
if(!m_closingDown&&m_exitFlag)