mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
conforms platformWindow<implementations> to use _setVideoMode internals so that those are called by
void PlatformWindow::setVideoMode(const GFXVideoMode &mode)
{
_setVideoMode(mode);
getScreenResChangeSignal().trigger(this, true);
}
allowing the resize trigger to go off, as well as any other shared functionality we want to slim the per-implementation specs down to later down the line
This commit is contained in:
parent
e75124fdf7
commit
9b2c189929
7 changed files with 7 additions and 8 deletions
|
|
@ -42,7 +42,7 @@ public:
|
|||
|
||||
virtual GFXDevice *getGFXDevice() { return mDevice; }
|
||||
virtual GFXWindowTarget *getGFXTarget() { return mTarget; }
|
||||
virtual void setVideoMode(const GFXVideoMode &mode);
|
||||
virtual void _setVideoMode(const GFXVideoMode &mode);
|
||||
virtual const GFXVideoMode &getVideoMode() { return mCurrentMode; }
|
||||
|
||||
virtual WindowId getWindowId() { return mWindowId; }
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ void MacWindow::_disassociateCocoaWindow()
|
|||
mCocoaWindow = NULL;
|
||||
}
|
||||
|
||||
void MacWindow::setVideoMode(const GFXVideoMode &mode)
|
||||
void MacWindow::_setVideoMode(const GFXVideoMode &mode)
|
||||
{
|
||||
mCurrentMode = mode;
|
||||
setSize(mCurrentMode.resolution);
|
||||
|
|
|
|||
|
|
@ -511,7 +511,7 @@ public:
|
|||
virtual void* getPlatformDrawable() const = 0;
|
||||
protected:
|
||||
virtual void _setFullscreen(const bool fullScreen) {};
|
||||
virtual void _setVideoMode(const GFXVideoMode &mode) {};
|
||||
virtual void _setVideoMode(const GFXVideoMode &mode) = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ void* PlatformWindowSDL::getSystemWindow(const WindowSystem system)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void PlatformWindowSDL::setVideoMode( const GFXVideoMode &mode )
|
||||
void PlatformWindowSDL::_setVideoMode( const GFXVideoMode &mode )
|
||||
{
|
||||
mVideoMode = mode;
|
||||
mSuppressReset = true;
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ public:
|
|||
virtual GFXDevice *getGFXDevice();
|
||||
virtual GFXWindowTarget *getGFXTarget();
|
||||
|
||||
virtual void setVideoMode(const GFXVideoMode &mode);
|
||||
virtual void _setVideoMode(const GFXVideoMode &mode);
|
||||
virtual const GFXVideoMode &getVideoMode();
|
||||
virtual bool clearFullscreen();
|
||||
virtual bool isFullscreen();
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ const GFXVideoMode & Win32Window::getVideoMode()
|
|||
return mVideoMode;
|
||||
}
|
||||
|
||||
void Win32Window::setVideoMode( const GFXVideoMode &mode )
|
||||
void Win32Window::_setVideoMode( const GFXVideoMode &mode )
|
||||
{
|
||||
bool needCurtain = ( mVideoMode.fullScreen != mode.fullScreen );
|
||||
|
||||
|
|
@ -277,7 +277,6 @@ void Win32Window::setVideoMode( const GFXVideoMode &mode )
|
|||
mOwningManager->raiseCurtain();
|
||||
|
||||
SetForegroundWindow( getHWND() );
|
||||
resizeEvent.trigger( this, true );
|
||||
}
|
||||
|
||||
bool Win32Window::clearFullscreen()
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ public:
|
|||
virtual GFXDevice *getGFXDevice();
|
||||
virtual GFXWindowTarget *getGFXTarget();
|
||||
|
||||
virtual void setVideoMode(const GFXVideoMode &mode);
|
||||
virtual void _setVideoMode(const GFXVideoMode &mode);
|
||||
virtual const GFXVideoMode &getVideoMode();
|
||||
virtual bool clearFullscreen();
|
||||
virtual bool isFullscreen();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue