diff --git a/src/dsc.h b/src/dsc.h index cd72f81..b7c328a 100644 --- a/src/dsc.h +++ b/src/dsc.h @@ -7,7 +7,8 @@ #ifndef __DSC_H #define __DSC_H -#include +#include + #include "solvespace.h" class Vector; diff --git a/src/fltk/fltkmain.cpp b/src/fltk/fltkmain.cpp index 6120c27..937dbc7 100644 --- a/src/fltk/fltkmain.cpp +++ b/src/fltk/fltkmain.cpp @@ -748,8 +748,8 @@ void ShowGraphicsEditControl(int x, int y, char *s) // Convert to ij (vs. xy) style coordinates, // and compensate for the input widget height due to inverse coord - x = x + GraphicsGlWnd->w()/2; - y = -y + GraphicsGlWnd->h()/2 - GraphicsEditControlWindow->h(); + x = x + GraphicsGlWnd->w()/2 + GraphicsWnd->x(); + y = -y + GraphicsGlWnd->h()/2 - GraphicsEditControlWindow->h() + GraphicsWnd->y(); GraphicsEditControlWindow->position(x, y); GraphicsEditControl->value(s);