diff options
Diffstat (limited to 'otk')
| -rw-r--r-- | otk/display.cc | 5 | ||||
| -rw-r--r-- | otk/display.hh | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/otk/display.cc b/otk/display.cc index 45924428..c30855d6 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -158,6 +158,11 @@ void OBDisplay::destroy() } +const ScreenInfo* OBDisplay::screenInfo(int snum) { + assert(snum >= 0); + assert(snum < static_cast<int>(_screenInfoList.size())); + return &_screenInfoList[snum]; +} diff --git a/otk/display.hh b/otk/display.hh index 7724bbab..13ceaa36 100644 --- a/otk/display.hh +++ b/otk/display.hh @@ -50,11 +50,7 @@ public: \param snum The screen number of the screen to retrieve info on \return Info on the requested screen, in a ScreenInfo class */ - inline static const ScreenInfo* screenInfo(int snum) { - assert(snum >= 0); - assert(snum < static_cast<int>(_screenInfoList.size())); - return &_screenInfoList[snum]; - } + static const ScreenInfo* screenInfo(int snum); //! Returns if the display has the shape extention available inline static bool shape() { return _shape; } |
