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.
This commit is contained in:
Vadim Zeitlin 2023-09-25 00:37:39 +02:00
parent df6366ff57
commit d128afe1e8

View file

@ -750,9 +750,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