/[rdesktop]/sourceforge.net/trunk/rdesktop/pstcache.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/pstcache.c

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

revision 1041 by astrand, Wed Aug 3 10:56:16 2005 UTC revision 1042 by astrand, Tue Jan 24 12:40:24 2006 UTC
# Line 24  Line 24 
24    
25  #define IS_PERSISTENT(id) (id < 8 && g_pstcache_fd[id] > 0)  #define IS_PERSISTENT(id) (id < 8 && g_pstcache_fd[id] > 0)
26    
27  extern int g_server_bpp;  extern int g_server_depth;
28  extern BOOL g_bitmap_cache;  extern BOOL g_bitmap_cache;
29  extern BOOL g_bitmap_cache_persist_enable;  extern BOOL g_bitmap_cache_persist_enable;
30  extern BOOL g_bitmap_cache_precache;  extern BOOL g_bitmap_cache_precache;
# Line 131  pstcache_enumerate(uint8 id, HASH_KEY * Line 131  pstcache_enumerate(uint8 id, HASH_KEY *
131                  {                  {
132                          memcpy(keylist[idx], cellhdr.key, sizeof(HASH_KEY));                          memcpy(keylist[idx], cellhdr.key, sizeof(HASH_KEY));
133    
134                          /* Pre-cache (not possible for 8bpp because 8bpp needs a colourmap) */                          /* Pre-cache (not possible for 8 bit colour depth cause it needs a colourmap) */
135                          if (g_bitmap_cache_precache && cellhdr.stamp && g_server_bpp > 8)                          if (g_bitmap_cache_precache && cellhdr.stamp && g_server_depth > 8)
136                                  pstcache_load_bitmap(id, idx);                                  pstcache_load_bitmap(id, idx);
137    
138                          /* Sort by stamp */                          /* Sort by stamp */
# Line 179  pstcache_init(uint8 cache_id) Line 179  pstcache_init(uint8 cache_id)
179                  return False;                  return False;
180          }          }
181    
182          g_pstcache_Bpp = (g_server_bpp + 7) / 8;          g_pstcache_Bpp = (g_server_depth + 7) / 8;
183          sprintf(filename, "cache/pstcache_%d_%d", cache_id, g_pstcache_Bpp);          sprintf(filename, "cache/pstcache_%d_%d", cache_id, g_pstcache_Bpp);
184          DEBUG(("persistent bitmap cache file: %s\n", filename));          DEBUG(("persistent bitmap cache file: %s\n", filename));
185    

Legend:
Removed from v.1041  
changed lines
  Added in v.1042

  ViewVC Help
Powered by ViewVC 1.1.26