All pastes #375799 Raw Edit

Miscellany

public text v1 · immutable
#375799 ·published 2007-02-28 16:56 UTC
rendered paste body
//in main.c
#include "testpicture.h"

int main()
{
	for(int i = 0; i < 256; i++)
		palette_mem[i] = testpicturePal[i];
		
	while(1){}
	return 0;
}

//in header
#ifndef __TESTPICTURE__
#define __TESTPICTURE__

#define testpicturePalLen 512
extern const unsigned short testpicturePal[256];

#endif // __TESTPICTURE__


//in other c file
const unsigned short testpicturePal[256]=
{
	0x0000,0x7FFF,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
...
};