Use reference instead of a copy in getFrameSize.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9913 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c7d7ef7263
commit
c242708315
@ -104,7 +104,7 @@ public:
|
||||
/** Returns a list of all video modes supports by the graphics card. */
|
||||
const std::vector<VideoMode>& getVideoModes() const { return m_modes; }
|
||||
/** Returns the frame size. */
|
||||
const core::dimension2d<u32> getFrameSize() const
|
||||
const core::dimension2d<u32>& getFrameSize() const
|
||||
{ return m_video_driver->getCurrentRenderTargetSize(); }
|
||||
/** Returns the irrlicht device. */
|
||||
IrrlichtDevice *getDevice() const { return m_device; }
|
||||
|
Loading…
Reference in New Issue
Block a user