Lines Matching refs:Palette

211       context->Palette[i].R = r;  in Load_GPL()
212 context->Palette[i].G = g; in Load_GPL()
213 context->Palette[i].B = b; in Load_GPL()
248 …if (fprintf(file,"%d %d %d\tUntitled\n",context->Palette[i].R, context->Palette[i].G, context->Pal… in Save_GPL()
286 memcpy(context->Palette, palette_64, sizeof(T_Palette)); in Load_PAL()
316 context->Palette[i].R = r; in Load_PAL()
317 context->Palette[i].G = g; in Load_PAL()
318 context->Palette[i].B = b; in Load_PAL()
346 context->Palette[i].R = colors[0]; in Load_PAL()
347 context->Palette[i].G = colors[1]; in Load_PAL()
348 context->Palette[i].B = colors[2]; in Load_PAL()
382 …if (fprintf(file,"%d %d %d\r\n",context->Palette[i].R, context->Palette[i].G, context->Palette[i].… in Save_PAL()
410 T_Palette Palette;// RGB Palette 256*3, on a 1-64 scale for each component member
430 Read_bytes(file,&header.Palette,sizeof(T_Palette)) && in Test_PKM()
469 Read_bytes(file,&header.Palette,sizeof(T_Palette)) && in Load_PKM()
573 memcpy(context->Palette,header.Palette,sizeof(T_Palette)); in Load_PKM()
574 Palette_64_to_256(context->Palette); in Load_PKM()
710 memcpy(header.Palette,context->Palette,sizeof(T_Palette)); in Save_PKM()
711 Palette_256_to_64(header.Palette); in Save_PKM()
735 Write_bytes(file,&header.Palette,sizeof(T_Palette)) && in Save_PKM()
1170 } Palette[10]; member
1188 if (!Read_byte(file,&header1.Palette[pal_index].color[color_index].Byte1) || in Test_KCF()
1189 !Read_byte(file,&header1.Palette[pal_index].color[color_index].Byte2)) in Test_KCF()
1194 if ((header1.Palette[pal_index].color[color_index].Byte2>>4)!=0) in Test_KCF()
1247 if (!Read_byte(file,&header1.Palette[pal_index].color[color_index].Byte1) || in Load_KCF()
1248 !Read_byte(file,&header1.Palette[pal_index].color[color_index].Byte2)) in Load_KCF()
1256 memset(context->Palette,0,sizeof(T_Palette)); in Load_KCF()
1263 … context->Palette[index].R=((header1.Palette[pal_index].color[color_index].Byte1 >> 4) << 4); in Load_KCF()
1264 … context->Palette[index].B=((header1.Palette[pal_index].color[color_index].Byte1 & 15) << 4); in Load_KCF()
1265 … context->Palette[index].G=((header1.Palette[pal_index].color[color_index].Byte2 & 15) << 4); in Load_KCF()
1270 context->Palette[index].R=context->Palette[index+16].R; in Load_KCF()
1271 context->Palette[index].G=context->Palette[index+16].G; in Load_KCF()
1272 context->Palette[index].B=context->Palette[index+16].B; in Load_KCF()
1309 context->Palette[index].R=(bytes[0] >> 4) << 4; in Load_KCF()
1310 context->Palette[index].B=(bytes[0] & 15) << 4; in Load_KCF()
1311 context->Palette[index].G=(bytes[1] & 15) << 4; in Load_KCF()
1316 context->Palette[index].R=bytes[0]; in Load_KCF()
1317 context->Palette[index].G=bytes[1]; in Load_KCF()
1318 context->Palette[index].B=bytes[2]; in Load_KCF()
1328 context->Palette[index].R=context->Palette[index+16].R; in Load_KCF()
1329 context->Palette[index].G=context->Palette[index+16].G; in Load_KCF()
1330 context->Palette[index].B=context->Palette[index+16].B; in Load_KCF()
1377 …header1.Palette[pal_index].color[color_index].Byte1=((context->Palette[index].R>>4)<<4) | (context… in Save_KCF()
1378 header1.Palette[pal_index].color[color_index].Byte2=context->Palette[index].G>>4; in Save_KCF()
1384 if (!Write_byte(file,header1.Palette[pal_index].color[color_index].Byte1) || in Save_KCF()
1385 !Write_byte(file,header1.Palette[pal_index].color[color_index].Byte2)) in Save_KCF()
1417 bytes[0]=context->Palette[index].R; in Save_KCF()
1418 bytes[1]=context->Palette[index].G; in Save_KCF()
1419 bytes[2]=context->Palette[index].B; in Save_KCF()
1601 memset(context->Palette,0,sizeof(T_Palette)); in Load_FLI()
1660 context->Palette[i].R = r; in Load_FLI()
1661 context->Palette[i].G = g; in Load_FLI()
1662 context->Palette[i].B = b; in Load_FLI()
1901 memset(context->Palette,0,sizeof(T_Palette)); in Load_HGR()
1904 DHGR_set_palette(context->Palette); in Load_HGR()
1909 HGR_set_palette(context->Palette); in Load_HGR()
2199 memset(context->Palette, 0, sizeof(T_Palette)); in Load_GRB()
2202 context->Palette[x].R = context->Palette[x].G = (x * 255) / ((1 << bpp) - 1); in Load_GRB()
2203 context->Palette[x].B = 127; in Load_GRB()