X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9597d39a2e3105f36db089936fc39375a83c1520..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/gtk/chkconf.h?ds=sidebyside diff --git a/include/wx/gtk/chkconf.h b/include/wx/gtk/chkconf.h index afd727fa3f..9897ebd352 100644 --- a/include/wx/gtk/chkconf.h +++ b/include/wx/gtk/chkconf.h @@ -81,3 +81,14 @@ #endif #endif /* __WINDOWS__ */ + +#ifdef __WXGTK3__ + #if !wxUSE_GRAPHICS_CONTEXT + #ifdef wxABORT_ON_CONFIG_ERROR + #error "GTK+ 3 support requires wxGraphicsContext" + #else + #undef wxUSE_GRAPHICS_CONTEXT + #define wxUSE_GRAPHICS_CONTEXT 1 + #endif + #endif +#endif