Ignore:
Timestamp:
07/11/06 20:45:10 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/catalog
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/catalog/Makefile

    r4104 r7787  
    2020# @endcode
    2121
    22 INCLUDES = -I. -I.. -I../base -I../slalib
     22INCLUDES = -I. -I.. -I../base -I../slalib -I../mars
    2323
    2424# @code
  • trunk/MagicSoft/Cosy/catalog/StarCatalog.cc

    r7773 r7787  
    169169    // CalcStars flips the picture in X defaultwise now
    170170    // This defined the box in which stars are really returned
    171     int x0 = (768-xc)-box;
    172     int x1 = (768-xc)+box;
    173     int y0 = yc-box;
    174     int y1 = yc+box;
    175 
    176     if (x0<  -offset) x0=  -offset;
    177     if (y0<  -offset) y0=  -offset;
    178     if (x1>fW+offset) x1=fW+offset;
    179     if (y1>fH+offset) y1=fH+offset;
     171    const int x0 = TMath::Max((768-xc)-box,   -offset);
     172    const int y0 = TMath::Max(yc-box,         -offset);
     173    const int x1 = TMath::Min((768-xc)+box, fW+offset);
     174    const int y1 = TMath::Min(yc+box,       fH+offset);
    180175
    181176    // Align stars into telescope system
Note: See TracChangeset for help on using the changeset viewer.