Make sure palette detection only occurs in 8bpp source input mode
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2573
This commit is contained in:
		
							parent
							
								
									b0a2637385
								
							
						
					
					
						commit
						e098ad6d81
					
				
					 1 changed files with 6 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -16,7 +16,7 @@
 | 
			
		|||
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
/* $Id: render.cpp,v 1.43 2006-02-26 16:04:35 qbix79 Exp $ */
 | 
			
		||||
/* $Id: render.cpp,v 1.44 2006-03-29 12:28:42 harekiet Exp $ */
 | 
			
		||||
 | 
			
		||||
#include <sys/types.h>
 | 
			
		||||
#include <dirent.h>
 | 
			
		||||
| 
						 | 
				
			
			@ -84,11 +84,6 @@ static void Check_Palette(void) {
 | 
			
		|||
	render.pal.last=0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void RENDER_ResetPal(void) {
 | 
			
		||||
	render.pal.first=0;
 | 
			
		||||
	render.pal.last=255;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void RENDER_SetPal(Bit8u entry,Bit8u red,Bit8u green,Bit8u blue) {
 | 
			
		||||
	render.pal.rgb[entry].red=red;
 | 
			
		||||
	render.pal.rgb[entry].green=green;
 | 
			
		||||
| 
						 | 
				
			
			@ -384,7 +379,11 @@ forcenormal:
 | 
			
		|||
	render.scale.blocks = render.src.width / SCALER_BLOCKSIZE;
 | 
			
		||||
	render.scale.lastBlock = render.src.width % SCALER_BLOCKSIZE;
 | 
			
		||||
	render.scale.inHeight = render.src.height;
 | 
			
		||||
	RENDER_ResetPal();
 | 
			
		||||
	/* Reset the palette change detection to it's initial value */
 | 
			
		||||
	render.pal.first= 0;
 | 
			
		||||
	render.pal.last = 255;
 | 
			
		||||
	render.pal.changed = false;
 | 
			
		||||
	memset(render.pal.modified, 0, sizeof(render.pal.modified));
 | 
			
		||||
	/* Signal the next frame to first reinit the cache */
 | 
			
		||||
	render.scale.clearCache = true;
 | 
			
		||||
	render.active=true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue