summaryrefslogtreecommitdiff
path: root/dgl/Base.hpp
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2019-01-06 19:31:21 +0100
committerfalkTX <falktx@gmail.com>2019-01-06 19:31:21 +0100
commita3006690997424238f4eac1c1f588cddb671909e (patch)
treeb7119948e56dac4eb76dc610f2db0b5b23cfe8a9 /dgl/Base.hpp
parent7125eaace4ea0653e66c3e16e60b15acfce952d7 (diff)
Do not use pugl context detection during runtime
Signed-off-by: falkTX <falktx@gmail.com>
Diffstat (limited to 'dgl/Base.hpp')
-rw-r--r--dgl/Base.hpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/dgl/Base.hpp b/dgl/Base.hpp
index dc6bdb8f..24a7cb01 100644
--- a/dgl/Base.hpp
+++ b/dgl/Base.hpp
@@ -1,6 +1,6 @@
/*
* DISTRHO Plugin Framework (DPF)
- * Copyright (C) 2012-2016 Filipe Coelho <falktx@falktx.com>
+ * Copyright (C) 2012-2019 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -184,15 +184,6 @@ enum Key {
kKeySuper
};
-/**
- Type of graphics context.
- */
-enum ContextType
-{
- kContextGL,
- kContextCairo
-};
-
// -----------------------------------------------------------------------
// Base DGL classes
@@ -211,15 +202,9 @@ public:
*/
struct Context
{
- ContextType type;
- union {
-#ifdef HAVE_DGL
- struct { /* nothing for now */ } gl;
-#endif
#ifdef HAVE_DCAIRO
- struct { cairo_t* graphics; } cairo;
+ cairo_t* cairo;
#endif
- };
};
// -----------------------------------------------------------------------