예제 #1
0
void FCEUI_NTSCINC(void)
{
	if(ntsccol && GameInfo->type!=GIT_VSUNI && !PAL)
		if(controlselect)
		{
			if(controllength)
			{
				switch(controlselect)
				{
					case 1:
						ntschue++;
						if(ntschue>128)
							ntschue=128;
						CalculatePalette();
						break;
					case 2:
						ntsctint++;
						if(ntsctint>128)
							ntsctint=128;
						CalculatePalette();
						break;
				}
			}
			controllength=360;
		}
}
예제 #2
0
파일: palette.cpp 프로젝트: Nolaan/fceux
static void ChoosePalette(void)
{
	//NSF uses a fixed palette always:
	if(GameInfo->type==GIT_NSF)
		palo = default_palette[0];
	//user palette takes priority over others
	else if(palette_user_available)
		palo = palette_user;
	//NTSC takes priority next, if it's appropriate
	else if(ntsccol_enable && !PAL && GameInfo->type!=GIT_VSUNI)
	{
		//for NTSC games, we can actually use the NTSC palette
		palo = palette_ntsc;
		CalculatePalette();
	}
	//select the game's overridden palette if available
	else if(palette_game_available)
		palo = palette_game;
	//finally, use a default built-in palette
	else
	{
		palo = default_palette[default_palette_selection];
		//need to calcualte a deemph on the fly.. sorry. maybe support otherwise later
		ApplyDeemphasisComplete(palo);
	}
}
예제 #3
0
static void ChoosePalette(void) {
	if (GameInfo->type == GIT_NSF)
		palo = 0;
	else if (ipalette)
		palo = palettei;
	else if (ntsccol && !PAL && GameInfo->type != GIT_VSUNI) {
		palo = paletten;
		CalculatePalette();
	} else
		palo = palpoint[pale];
}
예제 #4
0
void FCEUI_NTSCDEC(void) {
	if (ntsccol && GameInfo->type != GIT_VSUNI && !PAL && GameInfo->type != GIT_NSF) {
		int which;
		if (controlselect) {
			if (controllength) {
				which = controlselect == 1 ? ntschue : ntsctint;
				which--;
				if (which < 0) which = 0;
				if (controlselect == 1)
					ntschue = which;
				else ntsctint = which;
				CalculatePalette();
			}
			controllength = 360;
		}
	}
}