diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-03-30 16:52:13 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-03-30 16:52:13 +0000 |
| commit | 5677bdafc48e6231a67c01e5d894ed657aa0ecf6 (patch) | |
| tree | a847157bc1d7f8811bcae2d37e9ebe1f8f9b4c6b /Graphics/GraphicsEngineD3DBase | |
| parent | Implemented option to specify hardware adapter when initializing the engine i... (diff) | |
| download | DiligentCore-5677bdafc48e6231a67c01e5d894ed657aa0ecf6.tar.gz DiligentCore-5677bdafc48e6231a67c01e5d894ed657aa0ecf6.zip | |
Implemented initialization in fullscreen mode on Win32
Diffstat (limited to 'Graphics/GraphicsEngineD3DBase')
| -rw-r--r-- | Graphics/GraphicsEngineD3DBase/include/EngineFactoryD3DBase.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3DBase/include/EngineFactoryD3DBase.h b/Graphics/GraphicsEngineD3DBase/include/EngineFactoryD3DBase.h index 86142c8c..934b8974 100644 --- a/Graphics/GraphicsEngineD3DBase/include/EngineFactoryD3DBase.h +++ b/Graphics/GraphicsEngineD3DBase/include/EngineFactoryD3DBase.h @@ -135,7 +135,8 @@ public: DstMode.Width = SrcMode.Width; DstMode.Height = SrcMode.Height; DstMode.Format = DXGI_FormatToTexFormat(SrcMode.Format); - DstMode.RefreshRate = static_cast<double>(SrcMode.RefreshRate.Numerator) / static_cast<double>(SrcMode.RefreshRate.Denominator); + DstMode.RefreshRateNumerator = SrcMode.RefreshRate.Numerator; + DstMode.RefreshRateDenominator = SrcMode.RefreshRate.Denominator; DstMode.Scaling = static_cast<DisplayModeAttribs::SCALING>(SrcMode.Scaling); DstMode.ScanlineOrder = static_cast<DisplayModeAttribs::SCANLINE_ORDER>(SrcMode.ScanlineOrdering); } |
