Handle all cases in switch instead of using "default"
No real changes, just clean up the code a bit to make sure we get a -Wswitch if any elements are added to wxDisplayType enum in the future. (cherry picked from commit d128afe1e8fff6fbd16c46ffbe30eaba706ff274)
This commit is contained in:
parent
3586813817
commit
7df5cf53f4
@ -852,9 +852,11 @@ bool wxGLCanvasEGL::IsShownOnScreen() const
|
||||
return GetXWindow() && wxGLCanvasBase::IsShownOnScreen();
|
||||
case wxDisplayWayland:
|
||||
return m_readyToDraw && wxGLCanvasBase::IsShownOnScreen();
|
||||
default:
|
||||
return false;
|
||||
case wxDisplayNone:
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif // wxUSE_GLCANVAS && wxUSE_GLCANVAS_EGL
|
||||
|
Loading…
Reference in New Issue
Block a user