Commit 70e78d80 authored by hybrid's avatar hybrid

Changed return value of a videomodelist method. missing linebreak in vector3d.h

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1375 dfc29bdd-3216-0410-991c-e03cc46cb475
parent e0b7099b
......@@ -24,9 +24,6 @@ namespace video
{
public:
//! destructor
virtual ~IVideoModeList() {}
//! Gets amount of video modes in the list.
/** \return Returns amount of video modes. */
virtual s32 getVideoModeCount() const = 0;
......@@ -43,7 +40,7 @@ namespace video
//! Get current desktop screen resolution.
/** \return Size of screen in pixels of the current desktop video mode. */
virtual core::dimension2d<s32> getDesktopResolution() const = 0;
virtual const core::dimension2d<s32>& getDesktopResolution() const = 0;
//! Get the pixel depth of a video mode in bits.
/** \return Size of each pixel of the current desktop video mode in bits. */
......
......@@ -277,7 +277,7 @@ namespace core
typedef vector3d<s32> vector3di;
//! Function multiplying a scalar and a vector component-wise.
template<class S, class T>
template<class S, class T>
vector3d<T> operator*(const S scalar, const vector3d<T>& vector) { return vector*scalar; }
} // end namespace core
......
......@@ -21,13 +21,6 @@ CVideoModeList::CVideoModeList()
}
//! destructor
CVideoModeList::~CVideoModeList()
{
}
void CVideoModeList::setDesktop(s32 desktopDepth, const core::dimension2d<s32>& desktopSize)
{
Desktop.depth = desktopDepth;
......@@ -42,7 +35,6 @@ s32 CVideoModeList::getVideoModeCount() const
}
//! Returns the screen size of a video mode in pixels.
core::dimension2d<s32> CVideoModeList::getVideoModeResolution(s32 modeNumber) const
{
......@@ -53,7 +45,6 @@ core::dimension2d<s32> CVideoModeList::getVideoModeResolution(s32 modeNumber) co
}
//! Returns the pixel depth of a video mode in bits.
s32 CVideoModeList::getVideoModeDepth(s32 modeNumber) const
{
......@@ -65,7 +56,7 @@ s32 CVideoModeList::getVideoModeDepth(s32 modeNumber) const
//! Returns current desktop screen resolution.
core::dimension2d<s32> CVideoModeList::getDesktopResolution() const
const core::dimension2d<s32>& CVideoModeList::getDesktopResolution() const
{
return Desktop.size;
}
......@@ -78,7 +69,6 @@ s32 CVideoModeList::getDesktopDepth() const
}
//! adds a new mode to the list
void CVideoModeList::addMode(const core::dimension2d<s32>& size, s32 depth)
{
......
......@@ -21,9 +21,6 @@ namespace video
//! constructor
CVideoModeList();
//! destructor
virtual ~CVideoModeList();
//! Gets amount of video modes in the list.
virtual s32 getVideoModeCount() const;
......@@ -34,7 +31,7 @@ namespace video
virtual s32 getVideoModeDepth(s32 modeNumber) const;
//! Returns current desktop screen resolution.
virtual core::dimension2d<s32> getDesktopResolution() const;
virtual const core::dimension2d<s32>& getDesktopResolution() const;
//! Returns the pixel depth of a video mode in bits.
virtual s32 getDesktopDepth() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment