add GetMonitorAspectRatio
This commit is contained in:
@@ -18,6 +18,7 @@ public:
|
||||
// need to be reloaded.
|
||||
virtual RString TryVideoMode( const VideoModeParams &p, bool &bNewDeviceOut ) = 0;
|
||||
virtual void GetDisplayResolutions( DisplayResolutions &out ) const = 0;
|
||||
virtual float GetMonitorAspectRatio() const = 0;
|
||||
|
||||
virtual bool IsSoftwareRenderer( RString &sError ) { return false; }
|
||||
|
||||
|
||||
@@ -59,6 +59,11 @@ void LowLevelWindow_Win32::GetDisplayResolutions( DisplayResolutions &out ) cons
|
||||
GraphicsWindow::GetDisplayResolutions( out );
|
||||
}
|
||||
|
||||
float LowLevelWindow_Win32::GetMonitorAspectRatio() const
|
||||
{
|
||||
return GraphicsWindow::GetMonitorAspectRatio();
|
||||
}
|
||||
|
||||
int ChooseWindowPixelFormat( const VideoModeParams &p, PIXELFORMATDESCRIPTOR *PixelFormat )
|
||||
{
|
||||
ASSERT( GraphicsWindow::GetHwnd() != NULL );
|
||||
|
||||
@@ -11,6 +11,7 @@ public:
|
||||
void *GetProcAddress( RString s );
|
||||
RString TryVideoMode( const VideoModeParams &p, bool &bNewDeviceOut );
|
||||
void GetDisplayResolutions( DisplayResolutions &out ) const;
|
||||
float GetMonitorAspectRatio() const;
|
||||
bool IsSoftwareRenderer( RString &sError );
|
||||
void SwapBuffers();
|
||||
void Update();
|
||||
|
||||
Reference in New Issue
Block a user