bool MouseStateHandler::SetMouseWindow(long x, long y,long width, long height)
{
    LbSemaLock semlock(&semaphore,0);
    if (!semlock.Lock(true))
      return false;
    lbDisplay.MouseWindowX = x;
    lbDisplay.MouseWindowY = y;
    lbDisplay.MouseWindowWidth = width;
    lbDisplay.MouseWindowHeight = height;
    adjust_point(&lbDisplay.MMouseX, &lbDisplay.MMouseY);
    adjust_point(&lbDisplay.MouseX, &lbDisplay.MouseY);
    return true;
}
Esempio n. 2
0
int get_point(int x,int y)
  {
  x = x*640/500;y = y*480/2000;
  adjust_point(&x,&y);
  return in1[DATASTART+x+y*640];
  }
Esempio n. 3
0
void set_point(int x,int y,int c)
  {
  adjust_point(&x,&y);
  out[DATASTART+x+y*640] = c;
  }
Esempio n. 4
0
int main(void) {
    struct Point3D before = {{1, 2, 3}};
    struct Point3D after = adjust_point(before);

    return after.coord[2] - before.coord[2];
}