- Timestamp:
- 10/15/03 20:02:32 (21 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGImage.cc
r2384 r2388 84 84 } 85 85 86 void MGImage::DrawImg16(unsigned short *d, char *s, char *e) 87 { 88 // d=destination, s=source, e=end 89 // rrrrrggg gggbbbbb 90 // 91 while (s<e) 92 { 93 *d++ = (*s&0xfc) | (*s&0xf8)<<5 | (*s&0xfc)<<11; 94 s++; 95 } 96 } 97 86 98 void MGImage::DrawImg32(char *d, char *s, char *e) 87 99 { 88 100 // d=destination, s=source, e=end 101 // rrrrrrrr gggggggg bbbbbbbb aaaaaaaa 102 // 89 103 while (s<e) 90 104 { … … 127 141 switch (gVirtualX->GetDepth()) 128 142 { 143 case 8: 144 memcpy(fImage->data, buffer, fWidth*fHeight); 145 break; 146 case 16: 147 DrawImg16((unsigned short*)fImage->data, (char*)buffer, (char*)(buffer+fWidth*fHeight)); 148 break; 129 149 case 32: 130 150 DrawImg32(fImage->data, (char*)buffer, (char*)(buffer+fWidth*fHeight)); -
trunk/MagicSoft/Cosy/gui/MGImage.h
r2384 r2388 35 35 enum { kNeedRedraw = BIT(17) }; 36 36 37 void DrawImg16(unsigned short *d, char *s, char *e); 37 38 void DrawImg32(char *d, char *s, char *e); 38 39 void DrawColImg32(char *d, char *s1, char *s2, char *e); -
trunk/MagicSoft/Cosy/stars.txt
r2385 r2388 1 1 12 54 02 55 57 35 Alioth (1.77) 2 2 00 08 24 29 05 26 Alpheratz (2.06) 3 19 50 47 3 19 50 47 08 52 06 Altair (0.77) 4 4 16 29 25 -26 25 55 Antares (0.96) 5 5 14 15 40 19 10 57 Arcturus (-0.04) … … 8 8 20 41 26 45 16 49 Deneb (1.25) 9 9 11 03 44 61 45 03 Dubhe (1.79) 10 18 24 10 -34 23 5 Kaus Australis (1.85) 10 18 24 10 -34 23 05 Kaus Australis (1.85) 11 05 34 32 22 00 52 M1 (8.4) 11 12 13 23 56 54 55 31 Mizar A (2.23) 12 13 16 53 52 39 45 37 Mkn 501 … … 16 17 18 55 16 -26 17 48 Sagittarius Sigma-34 (2.02) 17 18 00 40 31 56 32 14 Schedar (2.23) 18 13 25 13 -11 19 13 25 13 -11 09 41 Spica (0.98) 19 20 17 37 19 -42 59 52 Theta Scorpionis (1.87) 20 21 18 36 56 38 47 01 Vega (0.03)
Note:
See TracChangeset
for help on using the changeset viewer.