/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/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/branches/seamlessrdp-branch/rdesktop/cache.c

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

revision 774 by jsorg71, Sat Oct 2 00:40:13 2004 UTC revision 777 by jsorg71, Sat Oct 2 01:36:20 2004 UTC
# Line 28  extern int g_pstcache_fd[]; Line 28  extern int g_pstcache_fd[];
28  extern BOOL g_use_rdp5;  extern BOOL g_use_rdp5;
29    
30  uint32 g_stamp;  uint32 g_stamp;
 int g_num_bitmaps_in_memory[3];  
31    
32    static int g_num_bitmaps_in_memory[3];
33    
34  /* BITMAP CACHE */  /* BITMAP CACHE */
35  static BMPCACHEENTRY g_bmpcache[3][0xa00];  static BMPCACHEENTRY g_bmpcache[3][0xa00];
# Line 39  static HBITMAP g_volatile_bc[3]; Line 39  static HBITMAP g_volatile_bc[3];
39  void  void
40  cache_remove_lru_bitmap(uint8 cache_id)  cache_remove_lru_bitmap(uint8 cache_id)
41  {  {
42          int i;          uint32 i;
43          uint16 cache_idx = 0;          uint16 cache_idx = 0;
44          uint32 m = (uint32) - 1;          uint32 m = 0xffffffff;
45          BMPCACHEENTRY *pbce;          BMPCACHEENTRY *pbce;
46    
47          for (i = 0; i < NUM_ELEMENTS(g_bmpcache[cache_id]); i++)          for (i = 0; i < NUM_ELEMENTS(g_bmpcache[cache_id]); i++)
# Line 125  cache_put_bitmap(uint8 cache_id, uint16 Line 125  cache_put_bitmap(uint8 cache_id, uint16
125  void  void
126  cache_save_state(void)  cache_save_state(void)
127  {  {
128          int id, idx;          uint32 id, idx;
129    
130          for (id = 0; id < NUM_ELEMENTS(g_bmpcache); id++)          for (id = 0; id < NUM_ELEMENTS(g_bmpcache); id++)
131                  if (IS_PERSISTENT(id))                  if (IS_PERSISTENT(id))

Legend:
Removed from v.774  
changed lines
  Added in v.777

  ViewVC Help
Powered by ViewVC 1.1.26