diff --git a/ng/Togl2.1/togl.c b/ng/Togl2.1/togl.c index 100ef8e1..ee1f16e5 100644 --- a/ng/Togl2.1/togl.c +++ b/ng/Togl2.1/togl.c @@ -4044,7 +4044,7 @@ Togl_Height(const Togl *togl) return togl->Height; } -EXTERN int +int Togl_PixelScale(const Togl *togl) { return togl->PixelScale; diff --git a/ng/Togl2.1/toglDecls.h b/ng/Togl2.1/toglDecls.h index 0fdf8004..789ad15e 100755 --- a/ng/Togl2.1/toglDecls.h +++ b/ng/Togl2.1/toglDecls.h @@ -50,6 +50,11 @@ EXTERN int Togl_Width(const Togl *togl); /* 6 */ EXTERN int Togl_Height(const Togl *togl); #endif +#ifndef Togl_PixelScale_TCL_DECLARED +#define Togl_PixelScale_TCL_DECLARED +/* 6 */ +EXTERN int Togl_PixelScale(const Togl *togl); +#endif #ifndef Togl_Interp_TCL_DECLARED #define Togl_Interp_TCL_DECLARED /* 7 */ diff --git a/ng/ngpkg.cpp b/ng/ngpkg.cpp index 896344df..a80b0ea6 100644 --- a/ng/ngpkg.cpp +++ b/ng/ngpkg.cpp @@ -25,7 +25,7 @@ The interface between the GUI and the netgen library // to be sure to include the 'right' togl-version #include "Togl2.1/togl.h" -EXTERN int Togl_PixelScale (const Togl * togl); +// EXTERN int Togl_PixelScale (const Togl * togl); #include "fonts.hpp"