fix GraphicsEditControlWindow placement, and fix error due to cmath being included instead of math.h
This commit is contained in:
parent
252f4128b7
commit
6cfa884406
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user