From 2aa84642a05e774600388bd7c7ecb6bf2b6ced81 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 8 Jan 2020 17:56:45 +0100 Subject: [PATCH] Allow it to build when namespace DGL is not used --- examples/SendNote/SendNoteExampleUI.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/SendNote/SendNoteExampleUI.cpp b/examples/SendNote/SendNoteExampleUI.cpp index 0dbadffe..ae43ff6d 100644 --- a/examples/SendNote/SendNoteExampleUI.cpp +++ b/examples/SendNote/SendNoteExampleUI.cpp @@ -61,7 +61,7 @@ protected: for (int key = 0; key < 12; ++key) { bool pressed = fKeyState[key]; - Rectangle bounds = getKeyBounds(key); + DGL::Rectangle bounds = getKeyBounds(key); if (pressed) glColor3f(0.8f, 0.5f, 0.3f); @@ -86,7 +86,7 @@ protected: int whichKey = -1; for (int key = 0; key < 12 && whichKey == -1; ++key) { - Rectangle bounds = getKeyBounds(key); + DGL::Rectangle bounds = getKeyBounds(key); if (bounds.contains(ev.pos)) whichKey = key; @@ -115,9 +115,9 @@ private: /** Get the bounds of a particular key of the virtual MIDI keyboard. */ - Rectangle getKeyBounds(unsigned index) const + DGL::Rectangle getKeyBounds(unsigned index) const { - Rectangle bounds; + DGL::Rectangle bounds; int padding = 8; bounds.setX(64 * index + padding); bounds.setY(padding);