X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9597d39a2e3105f36db089936fc39375a83c1520..51623cc53f350935337e57930eaaf1afe9a48c3b:/include/wx/gtk/chkconf.h?ds=inline 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