11/*
22 * DISTRHO Plugin Framework (DPF)
3- * Copyright (C) 2012-2021 Filipe Coelho <[email protected] > 3+ * Copyright (C) 2012-2025 Filipe Coelho <[email protected] > 44 *
55 * Permission to use, copy, modify, and/or distribute this software for any purpose with
66 * or without fee is hereby granted, provided that the above copyright notice and this
@@ -360,25 +360,23 @@ class Line
360360 */
361361 bool isNotNull () const noexcept ;
362362
363- #ifndef DPF_TEST_POINT_CPP
364363 /* *
365364 Draw this line using the provided graphics context, optionally specifying line width.
366365 */
367366 void draw (const GraphicsContext& context, T width = 1 );
368- #endif
369367
370368 Line<T>& operator =(const Line<T>& line) noexcept ;
371369 bool operator ==(const Line<T>& line) const noexcept ;
372370 bool operator !=(const Line<T>& line) const noexcept ;
373371
374- # ifndef DPF_TEST_POINT_CPP
372+ # ifdef DGL_ALLOW_DEPRECATED_METHODS
375373 /* *
376374 Draw this line using the current OpenGL state.@n
377375 DEPRECATED Please use draw(const GraphicsContext&) instead.
378376 */
379377 DISTRHO_DEPRECATED_BY (" draw(const GraphicsContext&)" )
380378 void draw();
381- #endif
379+ #endif
382380
383381private:
384382 Point<T> posStart, posEnd;
@@ -489,7 +487,7 @@ class Circle
489487 bool operator ==(const Circle<T>& cir) const noexcept ;
490488 bool operator !=(const Circle<T>& cir) const noexcept ;
491489
492- # ifndef DPF_TEST_POINT_CPP
490+ # ifdef DGL_ALLOW_DEPRECATED_METHODS
493491 /* *
494492 Draw this circle using the current OpenGL state.@n
495493 DEPRECATED Please use draw(const GraphicsContext&) instead.
@@ -503,7 +501,7 @@ class Circle
503501 */
504502 DISTRHO_DEPRECATED_BY (" drawOutline(const GraphicsContext&)" )
505503 void drawOutline();
506- #endif
504+ #endif
507505
508506private:
509507 Point<T> fPos ;
@@ -582,7 +580,7 @@ class Triangle
582580 bool operator ==(const Triangle<T>& tri) const noexcept ;
583581 bool operator !=(const Triangle<T>& tri) const noexcept ;
584582
585- # ifndef DPF_TEST_POINT_CPP
583+ # ifdef DGL_ALLOW_DEPRECATED_METHODS
586584 /* *
587585 Draw this triangle using the current OpenGL state.@n
588586 DEPRECATED Please use draw(const GraphicsContext&) instead.
@@ -596,7 +594,7 @@ class Triangle
596594 */
597595 DISTRHO_DEPRECATED_BY (" drawOutline(const GraphicsContext&)" )
598596 void drawOutline();
599- #endif
597+ #endif
600598
601599private:
602600 Point<T> pos1, pos2, pos3;
@@ -813,6 +811,7 @@ class Rectangle
813811 bool operator ==(const Rectangle<T>& size) const noexcept ;
814812 bool operator !=(const Rectangle<T>& size) const noexcept ;
815813
814+ #ifdef DGL_ALLOW_DEPRECATED_METHODS
816815 /* *
817816 Draw this rectangle using the current OpenGL state.@n
818817 DEPRECATED Please use draw(const GraphicsContext&) instead.
@@ -826,6 +825,7 @@ class Rectangle
826825 */
827826 DISTRHO_DEPRECATED_BY (" drawOutline(const GraphicsContext&)" )
828827 void drawOutline();
828+ #endif
829829
830830private:
831831 Point<T> pos;
0 commit comments