示例#1
0
static void ir_displayinfo(psd_file_t f, int level, int len, struct dictentry *parent){
	if(xml){
		for(; len >= 14; len -= 14){
			unsigned char data[14];
			fread(data, 1, 14, f);
			displayinfo(level, data);
		}
	}
}
示例#2
0
/*************************************************************************
 *
 *N  display_message
 *
 *::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 *
 *   Purpose:
 *P
 *     This function displays a one-line informational message to the
 *     screen and waits for the user to continue.  Must be in graphics mode
 *     to call this function.
 *E
 *::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 *
 *   Parameters:
 *A
 *    str <input> == (char *) message to be displayed.
 *E
 *::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 *
 *   History:
 *H
 *    Barry Michaels    July 1990    Original Version    DOS Turbo C
 *E
 *************************************************************************/
void display_message(char *str)
{
   char **txt;

   txt = (char **)vpfmalloc( (unsigned long)(1*sizeof(char **)) );
   txt[0] = strdup(str);
   displayinfo( txt, 1 );
   free(txt[0]);
   free(txt);
}
示例#3
0
static void ir_displayinfocs3(psd_file_t f, int level, int len, struct dictentry *parent){
	if(xml){
		fprintf(xml, "%s<VERSION>%d</VERSION>\n", tabs(level), get4B(f));
		len -= 4;
		for(; len >= 13; len -= 13){
			unsigned char data[13];
			// it seems as if this resource doesn't use DisplayInfo padding
			// (this divergence from API description isn't mentioned in File Format doc)
			fread(data, 1, 13, f);
			displayinfo(level, data);
		}
	}
}