fix GraphicsEditControlWindow placement, and fix error due to cmath being included instead of math.h

This commit is contained in:
Andrew Downing 2015-02-26 12:22:42 -05:00
parent 252f4128b7
commit 6cfa884406
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,8 @@
#ifndef __DSC_H #ifndef __DSC_H
#define __DSC_H #define __DSC_H
#include <cstddef> #include <stddef.h>
#include "solvespace.h" #include "solvespace.h"
class Vector; class Vector;

View File

@ -748,8 +748,8 @@ void ShowGraphicsEditControl(int x, int y, char *s)
// Convert to ij (vs. xy) style coordinates, // Convert to ij (vs. xy) style coordinates,
// and compensate for the input widget height due to inverse coord // and compensate for the input widget height due to inverse coord
x = x + GraphicsGlWnd->w()/2; x = x + GraphicsGlWnd->w()/2 + GraphicsWnd->x();
y = -y + GraphicsGlWnd->h()/2 - GraphicsEditControlWindow->h(); y = -y + GraphicsGlWnd->h()/2 - GraphicsEditControlWindow->h() + GraphicsWnd->y();
GraphicsEditControlWindow->position(x, y); GraphicsEditControlWindow->position(x, y);
GraphicsEditControl->value(s); GraphicsEditControl->value(s);