File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,6 @@ class IWindow : public core::IReferenceCounted
34
34
// ! Indicates whether mouse is hovering over the window even if the window is not active
35
35
ECF_MOUSE_FOCUS = 1u << 8 ,
36
36
ECF_ALWAYS_ON_TOP = 1u << 9 ,
37
- // ! Mobile platforms can have a window that rotates (landscape vs vertical)
38
- ECF_CAN_ROTATE = 1u << 10 ,
39
- ECF_LANDSCAPE_ORIENTATION = 1u << 11 ,
40
37
41
38
ECF_NONE = 0
42
39
};
@@ -186,8 +183,6 @@ class IWindow : public core::IReferenceCounted
186
183
inline bool hasInputFocus () { return (m_flags.value & ECF_INPUT_FOCUS); }
187
184
inline bool hasMouseFocus () { return (m_flags.value & ECF_MOUSE_FOCUS); }
188
185
inline bool isAlwaysOnTop () { return (m_flags.value & ECF_ALWAYS_ON_TOP); }
189
- inline bool canRotate () { return (m_flags.value & ECF_CAN_ROTATE); }
190
- inline bool isRotationLandscape () { return (m_flags.value & ECF_LANDSCAPE_ORIENTATION); }
191
186
192
187
inline uint32_t getWidth () const { return m_width; }
193
188
inline uint32_t getHeight () const { return m_height; }
Original file line number Diff line number Diff line change @@ -48,11 +48,15 @@ class NBL_API2 IWindowManager : public core::IReferenceCounted
48
48
49
49
inline bool setWindowRotation (IWindow* window, const bool landscape)
50
50
{
51
+ // TODO
52
+ /*
51
53
auto cb = window->getEventCallback();
52
54
if (window->getManager() != this || !window->canRotate() || landscape == window->isRotationLandscape() || cb && !cb->onWindowRotated(window))
53
55
return false;
54
56
55
57
return setWindowRotation_impl(window, landscape);
58
+ */
59
+ return false ;
56
60
}
57
61
58
62
inline bool show (IWindow* window)
You can’t perform that action at this time.
0 commit comments