Add more conditionals for --disable-menu

This commit is contained in:
twinaphex 2021-03-24 01:44:30 +01:00
parent 95f5df358a
commit 118ff58e6b

View File

@ -8,7 +8,11 @@
extern "C" { extern "C" {
#endif #endif
#include "../.././gfx/video_shader_parse.h" #ifdef HAVE_CONFIG_H
#include "../../../config.def.h"
#endif
#include "../../../gfx/video_shader_parse.h"
#ifndef CXX_BUILD #ifndef CXX_BUILD
} }
@ -30,6 +34,8 @@ public:
struct video_shader_pass *pass; struct video_shader_pass *pass;
}; };
#ifdef HAVE_MENU
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
class ShaderParamsDialog : public QDialog class ShaderParamsDialog : public QDialog
{ {
Q_OBJECT Q_OBJECT
@ -90,5 +96,7 @@ protected:
void resizeEvent(QResizeEvent *event); void resizeEvent(QResizeEvent *event);
void paintEvent(QPaintEvent *event); void paintEvent(QPaintEvent *event);
}; };
#endif
#endif
#endif #endif