DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit e697fa716e6b734eaaa8b02c5f2e961a4ef03fb7
parent d80c799b8cba2765c78ac6cee867f5c4fce869ac
Author: JP Cimalando <jpcima@users.noreply.github.com>
Date:   Wed, 26 Dec 2018 18:14:49 +0100

rename `getGraphics` to `getContext`

Diffstat:
Mdgl/Widget.hpp | 2+-
Mdgl/Window.hpp | 2+-
Mdgl/src/Widget.cpp | 4++--
Mdgl/src/Window.cpp | 2+-
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dgl/Widget.hpp b/dgl/Widget.hpp @@ -313,7 +313,7 @@ public: Window& getParentWindow() const noexcept; #if defined(HAVE_DCAIRO) - cairo_t* getGraphics() const noexcept; + cairo_t* getContext() const noexcept; #endif /** diff --git a/dgl/Window.hpp b/dgl/Window.hpp @@ -120,7 +120,7 @@ public: intptr_t getWindowId() const noexcept; #if defined(HAVE_DCAIRO) - cairo_t* getGraphics() const noexcept; + cairo_t* getContext() const noexcept; #endif void addIdleCallback(IdleCallback* const callback); diff --git a/dgl/src/Widget.cpp b/dgl/src/Widget.cpp @@ -190,9 +190,9 @@ Window& Widget::getParentWindow() const noexcept } #if defined(HAVE_DCAIRO) -cairo_t* Widget::getGraphics() const noexcept +cairo_t* Widget::getContext() const noexcept { - return pData->parent.getGraphics(); + return pData->parent.getContext(); } #endif diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp @@ -1385,7 +1385,7 @@ intptr_t Window::getWindowId() const noexcept } #if defined(HAVE_DCAIRO) -cairo_t* Window::getGraphics() const noexcept +cairo_t* Window::getContext() const noexcept { return (cairo_t*)puglGetContext(pData->fView); }