Write vsync toggle msg to debug log not OSD

Write vsync enable/disable messages to debug log and not the OSD, they
are kind of annoying.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover
2022-10-22 11:55:56 +00:00
parent 5d2dd01e85
commit c40a141792

View File

@@ -2283,18 +2283,18 @@ void GLDrawingPanel::DrawingPanelInit()
if (IsItWayland()) {
#ifdef HAVE_EGL
if (vsync)
systemScreenMessage(_("Enabling EGL VSync."));
wxLogDebug(_("Enabling EGL VSync."));
else
systemScreenMessage(_("Disabling EGL VSync."));
wxLogDebug(_("Disabling EGL VSync."));
eglSwapInterval(0, vsync);
#endif
}
else {
if (vsync)
systemScreenMessage(_("Enabling GLX VSync."));
wxLogDebug(_("Enabling GLX VSync."));
else
systemScreenMessage(_("Disabling GLX VSync."));
wxLogDebug(_("Disabling GLX VSync."));
static PFNGLXSWAPINTERVALEXTPROC glXSwapIntervalEXT = NULL;
static PFNGLXSWAPINTERVALSGIPROC glXSwapIntervalSGI = NULL;