CVS: rdesktop cache.c,1.17,1.18

Jay Sorg <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11230

Modified Files:
	cache.c 
Log Message:
don't remove lru bitmap unless its a rdp5 connection

Index: cache.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/cache.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** cache.c	12 Jul 2004 21:07:30 -0000	1.17
--- cache.c	2 Oct 2004 00:40:13 -0000	1.18
***************
*** 3,17 ****
     Cache routines
     Copyright (C) Matthew Chapman 1999-2002
!    
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.
!    
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.
!    
     You should have received a copy of the GNU General Public License
     along with this program; if not, write to the Free Software
--- 3,17 ----
     Cache routines
     Copyright (C) Matthew Chapman 1999-2002
! 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.
! 
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.
! 
     You should have received a copy of the GNU General Public License
     along with this program; if not, write to the Free Software
***************
*** 26,29 ****
--- 26,30 ----
  
  extern int g_pstcache_fd[];
+ extern BOOL g_use_rdp5;
  
  uint32 g_stamp;
***************
*** 99,103 ****
  			ui_destroy_bitmap(old);
  		}
! 		else
  		{
  			if (++g_num_bitmaps_in_memory[cache_id] > BMPCACHE2_C2_CELLS)
--- 100,104 ----
  			ui_destroy_bitmap(old);
  		}
! 		else if (g_use_rdp5)
  		{
  			if (++g_num_bitmaps_in_memory[cache_id] > BMPCACHE2_C2_CELLS)



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.