Revert "Always use current window size."
This reverts commit f974c9200c
.
This commit is contained in:
parent
53f4863e43
commit
f25bdc5653
@ -581,6 +581,8 @@ void IrrDriver::initDevice()
|
||||
m_scene_manager->addExternalMeshLoader(spml);
|
||||
spml->drop();
|
||||
|
||||
m_actual_screen_size = m_video_driver->getCurrentRenderTargetSize();
|
||||
|
||||
#ifdef ENABLE_RECORDER
|
||||
ogrRegGeneralCallback(OGR_CBT_START_RECORDING,
|
||||
[] (void* user_data) { MessageQueue::add
|
||||
@ -599,8 +601,8 @@ void IrrDriver::initDevice()
|
||||
RecorderConfig cfg;
|
||||
cfg.m_triple_buffering = 1;
|
||||
cfg.m_record_audio = 1;
|
||||
cfg.m_width = getActualScreenSize().Width;
|
||||
cfg.m_height = getActualScreenSize().Height;
|
||||
cfg.m_width = m_actual_screen_size.Width;
|
||||
cfg.m_height = m_actual_screen_size.Height;
|
||||
int vf = UserConfigParams::m_video_format;
|
||||
cfg.m_video_format = (VideoFormat)vf;
|
||||
cfg.m_audio_format = OGR_AF_VORBIS;
|
||||
|
@ -101,6 +101,8 @@ private:
|
||||
/** Wind. */
|
||||
Wind *m_wind;
|
||||
|
||||
core::dimension2du m_actual_screen_size;
|
||||
|
||||
/** The main MRT setup. */
|
||||
core::array<video::IRenderTarget> m_mrt;
|
||||
|
||||
@ -467,9 +469,8 @@ public:
|
||||
}
|
||||
// ------------------------------------------------------------------------
|
||||
const core::dimension2du getActualScreenSize() const
|
||||
{
|
||||
assert(m_video_driver != NULL);
|
||||
return m_video_driver->getCurrentRenderTargetSize();
|
||||
{
|
||||
return m_actual_screen_size;
|
||||
}
|
||||
// ------------------------------------------------------------------------
|
||||
float getSSAORadius() const
|
||||
|
Loading…
Reference in New Issue
Block a user