Skip to content

Commit

Permalink
bugfix: DMX targets would crash when opening the GUI (fixes #1179)
Browse files Browse the repository at this point in the history
The check would try to get the SDL2 mode, but that's not available under DispmanX
  • Loading branch information
midwan committed Nov 17, 2023
1 parent d2c59d3 commit cf990a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/osdep/gui/PanelDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -793,9 +793,13 @@ void RefreshPanelDisplay()

chkAspect->setSelected(changed_prefs.gfx_correct_aspect);
chkFilterLowRes->setSelected(changed_prefs.gfx_lores_mode);

#ifdef USE_DISPMANX
chkSdl2Thread->setEnabled(false);
chkSdl2Thread->setSelected(false);
#else
chkSdl2Thread->setEnabled(strcmpi(sdl_video_driver, "KMSDRM") != 0);
chkSdl2Thread->setSelected(get_sdl2_thread_enabled());
#endif

if (changed_prefs.gfx_apmode[0].gfx_fullscreen == GFX_WINDOW)
{
Expand Down

0 comments on commit cf990a6

Please sign in to comment.