Anti-aliasing working again

git-svn-id: http://svn.drobilla.net/lad@62 a436a847-0d15-0410-975c-d299462d15a1
This commit is contained in:
dave 2006-06-19 07:41:16 +00:00
parent f2267bbf41
commit 05efbd521f
6 changed files with 8 additions and 11 deletions

View File

@ -61,8 +61,13 @@ anti_alias="no"
AC_ARG_ENABLE(anti-aliasing,
[AS_HELP_STRING(--enable-anti-aliasing, [Enable anti aliased canvas (false, slow)])],
[ anti_alias="$enableval"])
# Yes, this is dirty...
if test "$anti_alias" = "yes"; then
AC_DEFINE(FLOWCANVAS_AA, 1, [Anti alias patch bay canvas])
AC_CONFIG_COMMANDS([set_aa],
[sed 's/\(\/\*CANVASBASE\*\/\).*/\1Gnome::Canvas::CanvasAA/' -i flowcanvas/FlowCanvas.h])
else
AC_CONFIG_COMMANDS([set_no_aa],
[sed 's/\(\/\*CANVASBASE\*\/\).*/\1Gnome::Canvas::Canvas/' -i flowcanvas/FlowCanvas.h])
fi
# Write it!

View File

@ -14,7 +14,6 @@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef CONNECTION_H
#define CONNECTION_H

View File

@ -18,7 +18,6 @@
#ifndef FLOWCANVAS_H
#define FLOWCANVAS_H
#include "config.h"
#include <string>
#include <list>
#include <libgnomecanvasmm.h>
@ -52,11 +51,8 @@ class Module;
*
* \ingroup FlowCanvas
*/
#ifdef FLOWCANVAS_AA
class FlowCanvas : public Gnome::Canvas::CanvasAA
#else
class FlowCanvas : public Gnome::Canvas::Canvas
#endif
class FlowCanvas : public /*CANVASBASE*/Gnome::Canvas::CanvasAA
// The CANVASBASE is a hook for a sed script in configure.ac
{
public:
FlowCanvas(double width, double height);

View File

@ -14,7 +14,6 @@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef MODULE_H
#define MODULE_H

View File

@ -14,7 +14,6 @@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef PORT_H
#define PORT_H

View File

@ -14,7 +14,6 @@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "FlowCanvas.h"
#include <cassert>
#include <map>