diff --git a/data/translations/text.dat b/data/translations/text.dat index 5e5232ffa..56047860d 100644 --- a/data/translations/text.dat +++ b/data/translations/text.dat @@ -86,6 +86,10 @@ eng=JUMP eng=ACTION ; Screen menu +[STR__FRONTEND__HORIZONTAL_POSITION] +eng=HORIZONTAL POSITION +[STR__FRONTEND__VERTICAL_POSITION] +eng=VERTICAL POSITION ; Sound menu [STR__FRONTEND__BGM] diff --git a/source/frontend/options.cpp b/source/frontend/options.cpp index fecd92f5e..1570441c6 100644 --- a/source/frontend/options.cpp +++ b/source/frontend/options.cpp @@ -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) diff --git a/source/frontend/options.h b/source/frontend/options.h index 05e200080..842df4baa 100644 --- a/source/frontend/options.h +++ b/source/frontend/options.h @@ -111,6 +111,8 @@ private: int m_sfxVolume; int m_speechVolume; int m_controlStyle; + int m_screenXOff; + int m_screenYOff; static int s_controlStyleValues[]; static CGUITextReadout::TextReadoutData s_controlStyleReadoutText[];