/[rdesktop]/sourceforge.net/trunk/rdesktop/cache.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/cache.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 20 by matty, Mon Oct 16 07:37:52 2000 UTC revision 24 by matty, Sat Jan 6 03:12:10 2001 UTC
# Line 32  HBITMAP cache_get_bitmap(uint8 cache_id, Line 32  HBITMAP cache_get_bitmap(uint8 cache_id,
32          HBITMAP bitmap;          HBITMAP bitmap;
33    
34          if ((cache_id < NUM_ELEMENTS(bmpcache))          if ((cache_id < NUM_ELEMENTS(bmpcache))
35                          && (cache_idx < NUM_ELEMENTS(bmpcache[0])))              && (cache_idx < NUM_ELEMENTS(bmpcache[0])))
36          {          {
37                  bitmap = bmpcache[cache_id][cache_idx];                  bitmap = bmpcache[cache_id][cache_idx];
38                  if (bitmap != NULL)                  if (bitmap != NULL)
# Line 49  void cache_put_bitmap(uint8 cache_id, ui Line 49  void cache_put_bitmap(uint8 cache_id, ui
49          HBITMAP old;          HBITMAP old;
50    
51          if ((cache_id < NUM_ELEMENTS(bmpcache))          if ((cache_id < NUM_ELEMENTS(bmpcache))
52                          && (cache_idx < NUM_ELEMENTS(bmpcache[0])))              && (cache_idx < NUM_ELEMENTS(bmpcache[0])))
53          {          {
54                  old = bmpcache[cache_id][cache_idx];                  old = bmpcache[cache_id][cache_idx];
55                  if (old != NULL)                  if (old != NULL)
# Line 73  FONTGLYPH *cache_get_font(uint8 font, ui Line 73  FONTGLYPH *cache_get_font(uint8 font, ui
73          FONTGLYPH *glyph;          FONTGLYPH *glyph;
74    
75          if ((font < NUM_ELEMENTS(fontcache))          if ((font < NUM_ELEMENTS(fontcache))
76                          && (character < NUM_ELEMENTS(fontcache[0])))              && (character < NUM_ELEMENTS(fontcache[0])))
77          {          {
78                  glyph = &fontcache[font][character];                  glyph = &fontcache[font][character];
79                  if (glyph->pixmap != NULL)                  if (glyph->pixmap != NULL)
# Line 86  FONTGLYPH *cache_get_font(uint8 font, ui Line 86  FONTGLYPH *cache_get_font(uint8 font, ui
86    
87  /* Store a glyph in the font cache */  /* Store a glyph in the font cache */
88  void cache_put_font(uint8 font, uint16 character, uint16 offset,  void cache_put_font(uint8 font, uint16 character, uint16 offset,
89                  uint16 baseline, uint16 width, uint16 height, HGLYPH pixmap)                      uint16 baseline, uint16 width, uint16 height,
90                        HGLYPH pixmap)
91  {  {
92          FONTGLYPH *glyph;          FONTGLYPH *glyph;
93    
94          if ((font < NUM_ELEMENTS(fontcache))          if ((font < NUM_ELEMENTS(fontcache))
95                          && (character < NUM_ELEMENTS(fontcache[0])))              && (character < NUM_ELEMENTS(fontcache[0])))
96          {          {
97                  glyph = &fontcache[font][character];                  glyph = &fontcache[font][character];
98                  if (glyph->pixmap != NULL)                  if (glyph->pixmap != NULL)
# Line 169  uint8 *cache_get_desktop(uint32 offset, Line 170  uint8 *cache_get_desktop(uint32 offset,
170  }  }
171    
172  /* Store desktop data in the cache */  /* Store desktop data in the cache */
173  void cache_put_desktop(uint32 offset, int cx, int cy, int scanline, uint8 *data)  void cache_put_desktop(uint32 offset, int cx, int cy, int scanline,
174                           uint8 *data)
175  {  {
176          int length = cx * cy;          int length = cx * cy;
177    
# Line 187  void cache_put_desktop(uint32 offset, in Line 189  void cache_put_desktop(uint32 offset, in
189                  ERROR("put desktop %d:%d\n", offset, length);                  ERROR("put desktop %d:%d\n", offset, length);
190          }          }
191  }  }
   

Legend:
Removed from v.20  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26