⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lcd_osd.lst

📁 Realtek 公司的RTD2523A芯片原厂source code,没有被修改过的。
💻 LST
📖 第 1 页 / 共 5 页
字号:
 903   3      
 904   3      			case PAGE1_ITEM_COLORTEMP:
 905   3      				if(NOTIFY_RIGHT_KEY == Key)
 906   3      					ucOSD_Item_Index1 = (ucOSD_Item_Index1 == 4) ? 4 : ucOSD_Item_Index1 + 1;
 907   3      				else
 908   3      					ucOSD_Item_Index1 = (ucOSD_Item_Index1 == 1) ? 1 : ucOSD_Item_Index1 - 1;
C51 COMPILER V6.20c  LCD_OSD                                                               04/15/2004 12:59:12 PAGE 16  

 909   3      
 910   3      				stGUD1.INPUT_SOURCE = (stGUD1.INPUT_SOURCE & 0xe7 ) | ((ucOSD_Item_Index1 - 1) << 3);
 911   3      
 912   3      				//Here we can only change the color in Byte 2 for necessary words
 913   3      				OSD_Line( 11, 36, 20, 0x40, 2);	//Set color to black
 914   3      				OSD_Line( 11, 36 + (ucOSD_Item_Index1-1)*(4+1), 4, 0x20, 2);
 915   3      
 916   3      				Set_Bright_Contrast();
 917   3      				Save_GUD1();
 918   3      				break;
 919   3      				
 920   3      			case PAGE1_ITEM_GAMMA :
 921   3      				if (NOTIFY_RIGHT_KEY == Key)
 922   3      				{
 923   4      					if (4 <= ucOSD_Item_Index1)
 924   4      						break;
 925   4      
 926   4      					ucOSD_Item_Index1   = ucOSD_Item_Index1 + 1;
 927   4      				}
 928   3      				else
 929   3      				{
 930   4      					if (1 >= ucOSD_Item_Index1)
 931   4      						break;
 932   4      
 933   4      					ucOSD_Item_Index1   = ucOSD_Item_Index1 - 1;
 934   4      				}
 935   3      
 936   3      				stGUD1.FUNCTION = (stGUD1.FUNCTION & 0x9f) | ((ucOSD_Item_Index1 - 1) << 5);
 937   3      				//Here we can only change the color in Byte 2 for necessary words
 938   3      				OSD_Line( 9, 36, 14, 0x40, 2);	//Set color to black
 939   3      				OSD_Line( 9, 36 + (ucOSD_Item_Index1-1)*(2+1), 1, 0x20, 2);
 940   3      
 941   3      				Set_Gamma();
 942   3      				Save_GUD1();
 943   3      				break;
 944   3                  
 945   3      		}
 946   2      	}
 947   1      	else
 948   1      	{
 949   2      		Osd_Change_Item(Key,PAGE1_ITEM_NUM);
 950   2      		
 951   2      	}
 952   1      }
 953          
 954          void Page1_Show(void)
 955          {
 956   1          OSD_Position(OSD_ENABLE);
 957   1      	Show_Osd_Page(0,Page1_Atb,0);
 958   1      
 959   1      	//Set Window 5 to select "Colour"
 960   1      	OSD_Window( 5, 10, 136, 54, 84, 1, 1, 14, 251, 0, 1, 25);
 961   1      
 962   1      	if (MODE_NOSIGNAL == ucMode_Curr || MODE_NOSUPPORT == ucMode_Curr)
 963   1      	{
 964   2      		ucOSD_Item_Index0   = 0;
 965   2      		ucOSD_Item_Index1   = 0;
 966   2      	}
 967   1      
 968   1      	OSD_Slider(5, 31, 17, stGUD0.CONTRAST, 100, 4, 14);
 969   1      	OSD_Slider(7, 31, 17, stGUD0.BRIGHT, 100, 4, 14);
 970   1      	
C51 COMPILER V6.20c  LCD_OSD                                                               04/15/2004 12:59:12 PAGE 17  

 971   1      	switch (ucOSD_Item_Index0)
 972   1      	{
 973   2      		case PAGE1_ITEM_CONTRAST :
 974   2      			break;
 975   2      			
 976   2      		case PAGE1_ITEM_BRIGHT :
 977   2      			break;
 978   2      			
 979   2      		case PAGE1_ITEM_GAMMA :
 980   2      			break;
 981   2      			
 982   2      		case PAGE1_ITEM_RGBADJ :
 983   2      			OSD_Window( 6, 150, 282, (54 + (ucOSD_Item_Index0-1)*(29+4)), (84 + (ucOSD_Item_Index0-1)*(29+4))
 984   2      				, 1, 1, 14, 251, 0, 1, 25);
 985   2      			break;
 986   2      	}
 987   1      }
 988          
 989          void Page1B_Enter_Key(void)
 990          {
 991   1      	ucOSD_Page_Index = 7;
 992   1      	if (PAGE1B_ITEM_EXIT == ucOSD_Item_Index1)
 993   1      	{
 994   2      		// De-select the page item and disable the hightlight window
 995   2      		OSD_Window( 6, 150, 282, (54 + (ucOSD_Item_Index0-1)*(29+4)), (84 + (ucOSD_Item_Index0-1)*(29+4))
 996   2      			, 0, 0, 14, 251, 0, 1, 0);
 997   2      		ucOSD_Item_Index1   = 0;
 998   2      		ucOSD_Item_Index2   = 0;
 999   2      	}
1000   1      	else
1001   1      	{
1002   2      		if (ucOSD_Item_Index2)
1003   2      		{
1004   3      			ucOSD_Item_Index2   = 0;	// Leave the item
1005   3      			switch (ucOSD_Item_Index1)
1006   3      			{
1007   4      				case PAGE1B_ITEM_RED :
1008   4      					OSD_Slider(5, 31, 17, stGUD0.RTD_R_CONTRAST, 100, 4, 2);
1009   4      					break;
1010   4      				
1011   4      				case PAGE1B_ITEM_GREEN :
1012   4      					OSD_Slider(7, 31, 17, stGUD0.RTD_G_CONTRAST, 100, 4, 12);
1013   4      					break;
1014   4      				
1015   4      				case PAGE1B_ITEM_BLUE :
1016   4      					OSD_Slider(9, 31, 17, stGUD0.RTD_B_CONTRAST, 100, 4, 3);
1017   4      					break;
1018   4      			}
1019   3      		}
1020   2      		else if (MODE_NOSIGNAL != ucMode_Curr && MODE_NOSUPPORT != ucMode_Curr)
1021   2      		{
1022   3      			ucOSD_Item_Index2   = 1;	// Enter the item
1023   3      
1024   3      			//Draw the selected slider
1025   3      			switch (ucOSD_Item_Index1)
1026   3      			{
1027   4      				case PAGE1B_ITEM_RED :
1028   4      					OSD_Slider(5, 31, 17, stGUD0.RTD_R_CONTRAST, 100, 2, 2);
1029   4      					break;
1030   4      				
1031   4      				case PAGE1B_ITEM_GREEN :
1032   4      					OSD_Slider(7, 31, 17, stGUD0.RTD_G_CONTRAST, 100, 12, 12);
C51 COMPILER V6.20c  LCD_OSD                                                               04/15/2004 12:59:12 PAGE 18  

1033   4      					break;
1034   4      				
1035   4      				case PAGE1B_ITEM_BLUE :
1036   4      					OSD_Slider(9, 31, 17, stGUD0.RTD_B_CONTRAST, 100, 3, 3);
1037   4      					break;
1038   4      			}
1039   3      		}
1040   2      	}
1041   1      	ucOSD_Page_Index = 1;
1042   1      }
1043          
1044          void Page1B_Left_Right_Key(unsigned char Key)
1045          {
1046   1      	ucOSD_Page_Index = 7;
1047   1      	if (ucOSD_Item_Index2)
1048   1      	{
1049   2      		switch (ucOSD_Item_Index1)
1050   2      		{
1051   3      			case PAGE1B_ITEM_RED :
1052   3      				Bright_Contrast_Adjust(&stGUD0.RTD_R_CONTRAST,Key);
1053   3      		
1054   3      				OSD_Slider(5, 31, 17, stGUD0.RTD_R_CONTRAST, 100, 2, 2);
1055   3      				break;
1056   3      				
1057   3      			case PAGE1B_ITEM_GREEN :
1058   3      				Bright_Contrast_Adjust(&stGUD0.RTD_G_CONTRAST,Key);
1059   3      			
1060   3      				OSD_Slider(7, 31, 17, stGUD0.RTD_G_CONTRAST, 100, 12, 12);
1061   3      				break;
1062   3      				
1063   3      			case PAGE1B_ITEM_BLUE :
1064   3      				Bright_Contrast_Adjust(&stGUD0.RTD_B_CONTRAST,Key);
1065   3      			
1066   3      				OSD_Slider(9, 31, 17, stGUD0.RTD_B_CONTRAST, 100, 3, 3);
1067   3      				break;
1068   3      		}
1069   2      
1070   2      		Set_Bright_Contrast();
1071   2      		Save_GUD0();
1072   2      		
1073   2      	}
1074   1      	else
1075   1      	{
1076   2      		// Select and highlight the next/previous item
1077   2      		if (NOTIFY_RIGHT_KEY == Key)
1078   2      			ucOSD_Item_Index1   = (PAGE1B_ITEM_NUM == ucOSD_Item_Index1) ? 1 : (ucOSD_Item_Index1 + 1);
1079   2      		else
1080   2      			ucOSD_Item_Index1   = (1 == ucOSD_Item_Index1) ? PAGE1B_ITEM_NUM : (ucOSD_Item_Index1 - 1);
1081   2                  
1082   2      		OSD_Window( 6, 150, 282, (54 + (ucOSD_Item_Index1-1)*(29+4)), (84 + (ucOSD_Item_Index1-1)*(29+4))
1083   2      			, 1, 1, 14, 251, 0, 1, 25);
1084   2      	}
1085   1      	ucOSD_Page_Index = 1;
1086   1      }
1087          
1088          void Page1B_Show(void)
1089          {
1090   1      	Show_Osd_Page(0,Page7_Atb,6);
1091   1      
1092   1      	// Set window 6 to Highlight the select item
1093   1      	OSD_Window( 6, 150, 282, 54, 84, 1, 1, 14, 251, 0, 1, 25);
1094   1      	
C51 COMPILER V6.20c  LCD_OSD                                                               04/15/2004 12:59:12 PAGE 19  

1095   1      	if (MODE_NOSIGNAL == ucMode_Curr || MODE_NOSUPPORT == ucMode_Curr)      
1096   1      		ucOSD_Item_Index2   = 0;
1097   1      
1098   1      	if (0 == ucOSD_Item_Index2)
1099   1      	{
1100   2      		ucOSD_Page_Index = 7;
1101   2      		OSD_Slider(5, 31, 17, stGUD0.RTD_R_CONTRAST, 100, 4, 2);
1102   2      		OSD_Slider(7, 31, 17, stGUD0.RTD_G_CONTRAST, 100, 4, 12);
1103   2      		OSD_Slider(9, 31, 17, stGUD0.RTD_B_CONTRAST, 100, 4, 3);
1104   2      		ucOSD_Page_Index = 1;
1105   2      	}
1106   1      	else
1107   1      	{
1108   2      		//Set the active slider (Red, Greed, Blue)
1109   2      		/*
1110   2      		OSD_Slider(11, 2, 20,
1111   2      			(PAGE1B_ITEM_RED == ucOSD_Item_Index1) ? stGUD0.RTD_R_CONTRAST 
1112   2      			: (PAGE1B_ITEM_GREEN == ucOSD_Item_Index1) ? stGUD0.RTD_G_CONTRAST
1113   2      			: stGUD0.RTD_B_CONTRAST, 100, 0x61);
1114   2      
1115   2      		*/
1116   2      	}
1117   1      }
1118          
1119          void Page2_Enter_Key()
1120          {
1121   1      	if (0 == ucOSD_Item_Index0)
1122   1      	{
1123   2      		if (MODE_NOSIGNAL != ucMode_Curr && MODE_NOSUPPORT != ucMode_Curr)
1124   2      		{
1125   3      			// Select and highlight the first item
1126   3      			ucOSD_Item_Index0   = PAGE2_ITEM_POSH;
1127   3      			ucOSD_Item_Index1   = 0;
1128   3      
1129   3      			//Enable Window 6 and Draw it
1130   3      			OSD_Window( 6, 150, 282, 54, 84, 1, 1, 14, 251, 0, 1, 25);
1131   3      		}
1132   2      	}
1133   1      	else
1134   1      	{
1135   2      		if (ucOSD_Item_Index1)
1136   2      		{
1137   3      			switch (ucOSD_Item_Index0)
1138   3      			{
1139   4      				case PAGE2_ITEM_POSH :
1140   4      					OSD_Slider(5, 31, 17, (128 + 50) - stMUD.H_POSITION, 100, 4, 14);
1141   4      					break;
1142   4      
1143   4      				case PAGE2_ITEM_POSV :
1144   4      					OSD_Slider(7, 31, 17, (unsigned int)(stMUD.V_POSITION - ucV_Min_Margin) * 50 / (128 - ucV_Min_Margin)
             -, 100, 4, 14);
1145   4      					break;
1146   4      					
1147   4      				case PAGE2_ITEM_PHASE :
1148   4      #if(MORE_PHASE)
              					OSD_Slider(9, 31, 17, stMUD.PHASE, 127, 4, 14);
              #else
1151   4      					OSD_Slider(9, 31, 17, (stMUD.PHASE & 0x7c) >> 2, 31, 4, 14);
1152   4      #endif
1153   4      					break;
1154   4      					
1155   4      				case PAGE2_ITEM_CLOCK :
C51 COMPILER V6.20c  LCD_OSD                                                               04/15/2004 12:59:12 PAGE 20  

1156   4      					OSD_Slider(11, 31, 17, stMUD.CLOCK - 28, 200, 4, 14);
1157   4      					break;
1158   4      
1159   4      				case PAGE2_ITEM_SHARP :
1160   4      					OSD_Line( 13, 36 + (ucOSD_Item_Index1-1)*(2+1), 1, 0x40, 2);
1161   4      					break;
1162   4      												
1163   4      			}
1164   3      
1165   3      			ucOSD_Item_Index1   = 0;    // Leave the item
1166   3      			
1167   3      		}
1168   2      		else
1169   2      		{
1170   3      			if (PAGE2_ITEM_EXIT == ucOSD_Item_Index0)
1171   3      			{
1172   4      				// Disable Window 6 and Draw it
1173   4      				OSD_Window( 6, 150, 282, (54 + (ucOSD_Item_Index0-1)*(29+4)), (84 + (ucOSD_Item_Index0-1)*(29+4))
1174   4      					, 0, 0, 14, 251, 0, 1, 0);
1175   4      				// De-select the page item and disable the hightlight window
1176   4      				ucOSD_Item_Index0   = 0;
1177   4      				ucOSD_Item_Index1   = 0;
1178   4      			}
1179   3      			else if (MODE_NOSIGNAL != ucMode_Curr && MODE_NOSUPPORT != ucMode_Curr)
1180   3      			{
1181   4      				if (SOURCE_VGA == (stGUD1.INPUT_SOURCE & 0x07) || PAGE2_ITEM_SHARP == ucOSD_Item_Index0)
1182   4      				{
1183   5      					switch (ucOSD_Item_Index0)
1184   5      					{
1185   6      						case PAGE2_ITEM_POSH :
1186   6      							ucOSD_Item_Index1   = 1;    // Enter the item
1187   6      							OSD_Slider(5, 31, 17, (128 + 50) - stMUD.H_POSITION, 100, 2, 14);
1188   6      							break;
1189   6      							
1190   6      						case PAGE2_ITEM_POSV :
1191   6      							ucOSD_Item_Index1   = 1;    // Enter the item
1192   6      							OSD_Slider(7, 31, 17, (unsigned int)(stMUD.V_POSITION - ucV_Min_Margin) * 50 / (128 - ucV_Min_Margi
             -n), 100, 2, 14);
1193   6      							break;
1194   6      							
1195   6      						case PAGE2_ITEM_PHASE :
1196   6      							ucOSD_Item_Index1   = 1;    // Enter the item
1197   6      #if(MORE_PHASE)
              							OSD_Slider(9, 31, 17, stMUD.PHASE, 127, 2, 14);
              #else
1200   6      							OSD_Slider(9, 31, 17, (stMUD.PHASE & 0x7c) >> 2, 31, 2, 14);
1201   6      #endif
1202   6      							break;
1203   6      							
1204   6      						case PAGE2_ITEM_CLOCK :
1205   6      							ucOSD_Item_Index1   = 1;    // Enter the item
1206   6                                  OSD_Slider(11, 31, 17, stMUD.CLOCK - 28, 200, 2, 14);
1207   6      							break;
1208   6      

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -