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
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 4 additions and 4 deletions

View File

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