Changeset 2514 for trunk/MagicSoft/Cosy/gui
- Timestamp:
- 11/14/03 14:07:13 (21 years ago)
- Location:
- trunk/MagicSoft/Cosy/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r2384 r2514 215 215 216 216 fRaEst = new TGLabel(f, "+000h 00.0m"); 217 fDecEst = new TGLabel(f, "+000 h00.0m");217 fDecEst = new TGLabel(f, "+000d 00.0m"); 218 218 fRaSoll = new TGLabel(f, "+000h 00.0m"); 219 fDecSoll = new TGLabel(f, "+000 h00.0m");220 fZdSoll = new TGLabel(f, "+000 h00.0m");221 fAzSoll = new TGLabel(f, "+000 h00.0m");219 fDecSoll = new TGLabel(f, "+000d 00.0m"); 220 fZdSoll = new TGLabel(f, "+000d 00.0m"); 221 fAzSoll = new TGLabel(f, "+000d 00.0m"); 222 222 fRaEst->SetTextJustify(kTextRight); 223 223 fDecEst->SetTextJustify(kTextRight); … … 931 931 deci = (int)test.Dec(); 932 932 //sprintf(text, "%c%dd %.1fm", rd.Dec()<0?'-':'+' , abs((int)rd.Dec()), 0.1*(abs((int)test.Dec())%600)); 933 sprintf(text, "%c%d h%.1fm", sd, d, dm);933 sprintf(text, "%c%dd %.1fm", sd, d, dm); 934 934 fDecEst->SetText(new TGString(text)); 935 935 } … … 961 961 decs = (int)test.Dec(); 962 962 //sprintf(text, "%c%dd %.1fm", radec.Dec()<0?'-':'+' , abs((int)radec.Dec()), 0.1*(abs((int)test.Dec())%600)); 963 sprintf(text, "%c%d h%.1fm", sd, d, dm);963 sprintf(text, "%c%dd %.1fm", sd, d, dm); 964 964 fDecSoll->SetText(new TGString(text)); 965 965 } -
trunk/MagicSoft/Cosy/gui/MGImage.cc
r2388 r2514 96 96 } 97 97 98 void MGImage::DrawImg 32(char *d, char *s, char *e)98 void MGImage::DrawImg24(char *d, char *s, char *e) 99 99 { 100 100 // d=destination, s=source, e=end … … 110 110 } 111 111 112 void MGImage::DrawColImg 32(char *d, char *s1, char *s2, char *e)112 void MGImage::DrawColImg24(char *d, char *s1, char *s2, char *e) 113 113 { 114 114 // d=destination, s1=source1, s2=source2, e=end … … 147 147 DrawImg16((unsigned short*)fImage->data, (char*)buffer, (char*)(buffer+fWidth*fHeight)); 148 148 break; 149 case 32:150 DrawImg 32(fImage->data, (char*)buffer, (char*)(buffer+fWidth*fHeight));149 case 24: 150 DrawImg24(fImage->data, (char*)buffer, (char*)(buffer+fWidth*fHeight)); 151 151 break; 152 152 default: … … 179 179 switch (gVirtualX->GetDepth()) 180 180 { 181 case 32:181 case 24: 182 182 DrawColImg32(fImage->data, (char*)gbuf, (char*)cbuf, (char*)(gbuf+fWidth*fHeight)); 183 183 break; -
trunk/MagicSoft/Cosy/gui/MGImage.h
r2388 r2514 36 36 37 37 void DrawImg16(unsigned short *d, char *s, char *e); 38 void DrawImg 32(char *d, char *s, char *e);39 void DrawColImg 32(char *d, char *s1, char *s2, char *e);38 void DrawImg24(char *d, char *s, char *e); 39 void DrawColImg24(char *d, char *s1, char *s2, char *e); 40 40 41 41 public:
Note:
See TracChangeset
for help on using the changeset viewer.