/[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 28 by matty, Wed Jun 20 13:54:48 2001 UTC revision 64 by astrand, Thu Jul 18 16:38:31 2002 UTC
# Line 1  Line 1 
1  /*  /*
2     rdesktop: A Remote Desktop Protocol client.     rdesktop: A Remote Desktop Protocol client.
3     Cache routines     Cache routines
4     Copyright (C) Matthew Chapman 1999-2000     Copyright (C) Matthew Chapman 1999-2001
5        
6     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
# Line 40  cache_get_bitmap(uint8 cache_id, uint16 Line 40  cache_get_bitmap(uint8 cache_id, uint16
40                          return bitmap;                          return bitmap;
41          }          }
42    
43          ERROR("get bitmap %d:%d\n", cache_id, cache_idx);          error("get bitmap %d:%d\n", cache_id, cache_idx);
44          return NULL;          return NULL;
45  }  }
46    
# Line 61  cache_put_bitmap(uint8 cache_id, uint16 Line 61  cache_put_bitmap(uint8 cache_id, uint16
61          }          }
62          else          else
63          {          {
64                  ERROR("put bitmap %d:%d\n", cache_id, cache_idx);                  error("put bitmap %d:%d\n", cache_id, cache_idx);
65          }          }
66  }  }
67    
# Line 83  cache_get_font(uint8 font, uint16 charac Line 83  cache_get_font(uint8 font, uint16 charac
83                          return glyph;                          return glyph;
84          }          }
85    
86          ERROR("get font %d:%d\n", font, character);          error("get font %d:%d\n", font, character);
87          return NULL;          return NULL;
88  }  }
89    
# Line 109  cache_put_font(uint8 font, uint16 charac Line 109  cache_put_font(uint8 font, uint16 charac
109          }          }
110          else          else
111          {          {
112                  ERROR("put font %d:%d\n", font, character);                  error("put font %d:%d\n", font, character);
113          }          }
114  }  }
115    
# Line 130  cache_get_text(uint8 cache_id) Line 130  cache_get_text(uint8 cache_id)
130                          return text;                          return text;
131          }          }
132    
133          ERROR("get text %d\n", cache_id);          error("get text %d\n", cache_id);
134          return NULL;          return NULL;
135  }  }
136    
# Line 152  cache_put_text(uint8 cache_id, void *dat Line 152  cache_put_text(uint8 cache_id, void *dat
152          }          }
153          else          else
154          {          {
155                  ERROR("put text %d\n", cache_id);                  error("put text %d\n", cache_id);
156          }          }
157  }  }
158    
# Line 171  cache_get_desktop(uint32 offset, int cx, Line 171  cache_get_desktop(uint32 offset, int cx,
171                  return &deskcache[offset];                  return &deskcache[offset];
172          }          }
173    
174          ERROR("get desktop %d:%d\n", offset, length);          error("get desktop %d:%d\n", offset, length);
175          return NULL;          return NULL;
176  }  }
177    
178  /* Store desktop data in the cache */  /* Store desktop data in the cache */
179  void  void
180  cache_put_desktop(uint32 offset, int cx, int cy, int scanline,  cache_put_desktop(uint32 offset, int cx, int cy, int scanline,
181                    int bytes_per_pixel, uint8 *data)                    int bytes_per_pixel, uint8 * data)
182  {  {
183          int length = cx * cy * bytes_per_pixel;          int length = cx * cy * bytes_per_pixel;
184    
# Line 194  cache_put_desktop(uint32 offset, int cx, Line 194  cache_put_desktop(uint32 offset, int cx,
194          }          }
195          else          else
196          {          {
197                  ERROR("put desktop %d:%d\n", offset, length);                  error("put desktop %d:%d\n", offset, length);
198          }          }
199  }  }
200    
# Line 203  cache_put_desktop(uint32 offset, int cx, Line 203  cache_put_desktop(uint32 offset, int cx,
203  static HCURSOR cursorcache[0x20];  static HCURSOR cursorcache[0x20];
204    
205  /* Retrieve cursor from cache */  /* Retrieve cursor from cache */
206  HCURSOR cache_get_cursor(uint16 cache_idx)  HCURSOR
207    cache_get_cursor(uint16 cache_idx)
208  {  {
209          HCURSOR cursor;          HCURSOR cursor;
210    
# Line 214  HCURSOR cache_get_cursor(uint16 cache_id Line 215  HCURSOR cache_get_cursor(uint16 cache_id
215                          return cursor;                          return cursor;
216          }          }
217    
218          ERROR("get cursor %d\n", cache_idx);          error("get cursor %d\n", cache_idx);
219          return NULL;          return NULL;
220  }  }
221    
# Line 234  cache_put_cursor(uint16 cache_idx, HCURS Line 235  cache_put_cursor(uint16 cache_idx, HCURS
235          }          }
236          else          else
237          {          {
238                  ERROR("put cursor %d\n", cache_idx);                  error("put cursor %d\n", cache_idx);
239          }          }
240  }  }

Legend:
Removed from v.28  
changed lines
  Added in v.64

  ViewVC Help
Powered by ViewVC 1.1.26